the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: dumpasn1
Version: 20101112
Revision: 2
###
Source: mirror:debian:/pool/main/d/%n/%n_%v.orig.tar.gz
Source-MD5: 4421e8b4128b75bd1868b80173e075cc
SourceDirectory: %n-%v
###
PatchFile: %n.patch
PatchFile-MD5: 291acc2d21665761b81b0b1ef257809b
###
DocFiles: README.txt
###
Maintainer: Hans-Christoph Steiner
HomePage: http://www.cs.auckland.ac.nz/~pgut001/
License: BSD
Description: ASN.1 object dump program
###
BuildDepends: fink (>= 0.24.12), sed
###
CompileScript: <<
sed -i 's|/etc/|%p/etc/|' dumpasn1.c
make
<<
InstallScript: make DESTDIR=%d prefix=%p install
###
DescDetail: <<
An ASN.1 object dump program which will dump data encoded using any of
the ASN.1 encoding rules in a variety of user-specified formats.
<<
--- dumpasn1-20101112 2/Makefile 2011-03-19 04:37:06.000000000 -0400
+++ dumpasn1-20101112/Makefile 2011-11-30 11:51:17.000000000 -0500
@@ -1,11 +1,14 @@
all: dumpasn1
dumpasn1: dumpasn1.c
+ head -46 dumpasn1.c > README.txt
gcc -o dumpasn1 -DDEBIAN dumpasn1.c
install:
- cp dumpasn1 $(DESTDIR)/usr/bin/
- cp dumpasn1.cfg $(DESTDIR)/etc/dumpasn1/
+ install -d $(DESTDIR)$(prefix)/bin
+ install -m 755 dumpasn1 $(DESTDIR)$(prefix)/bin/
+ install -d $(DESTDIR)$(prefix)/etc/dumpasn1
+ install -m 0644 dumpasn1.cfg $(DESTDIR)$(prefix)/etc/dumpasn1/
clean:
rm -f *.o *~