most recent changes, diff for afio

Index: archivers/afio/Portfile
--- archivers/afio/Portfile (revision 29062)
+++ archivers/afio/Portfile (revision 29063)
@@ -1,13 +1,15 @@
# $Id$

-PortSystem 1.0
+PortSystem 1.0

name afio
version 2.5
+revision 1
categories archivers
platforms darwin
maintainers michael.klein@puffin.lb.shuttle.de
description Archiver & backup program with builtin compression
+
long_description Afio makes cpio-format archives. It deals somewhat \
gracefully with input data corruption, supports \
multi-volume archives during interactive operation, and \
@@ -15,21 +17,30 @@
compressed tar or cpio archives. Afio is best used as \
an `archive engine' in a backup script.

-homepage http://freshmeat.net/projects/afio/
-master_sites http://members.brabant.chello.nl/~k.holtman
-checksums md5 8c6665e0f875dcd8e1bdb18644b59688
+homepage http://freshmeat.net/projects/afio/
+master_sites http://members.brabant.chello.nl/~k.holtman \
+ http://www.ibiblio.org/pub/Linux/system/backup/
extract.suffix .tgz

-use_configure no
+checksums md5 8c6665e0f875dcd8e1bdb18644b59688 \
+ sha1 051765f209fded60f94944da8a76ae37c3423a23 \
+ rmd160 991bdb794ee8b4b7e6a737afa85009aae925699d

-build.target afio
+post-patch {
+ reinplace -E "s|/usr(/local)?|\$(DESTDIR)${prefix}|" ${worksrcpath}/Makefile
+}

-destroot {
- xinstall ${worksrcpath}/afio ${destroot}${prefix}/bin/
- xinstall ${worksrcpath}/afio.1 ${destroot}${prefix}/share/man/man1/
- }
+configure {
+ reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/Makefile
+ reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile
+}

-destroot.destdir prefix=${destroot}${prefix}
+post-destroot {
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 -W ${worksrcpath} ANNOUNCE-2.5 HISTORY README SCRIPTS \
+ ${destroot}${docdir}
+}

-universal_variant no
+build.target afio