FreeBSD packaging: revert to simpler hack for debian tarballs; use ${FIND} instead...
[monkeysphere.git] / packaging / freebsd / security / monkeysphere / Makefile
index b6cacaf91e217a1f1c4461917d2e59b4c2f04e6c..65d71f4bcef66b9f1f9c293b7f66828b4f86914e 100644 (file)
@@ -10,9 +10,7 @@ PORTVERSION=  0.24
 CATEGORIES=    security
 MASTER_SITES=  http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
 # hack for debian orig tarballs
-DISTNAME=      ${PORTNAME}_${DISTVERSION}
-EXTRACT_SUFX=  .orig.tar.gz
-WRKSRC=        work/${PORTNAME}-${DISTVERSION}
+DISTFILES=     ${PORTNAME}_${DISTVERSION}.orig.tar.gz
 
 MAINTAINER=    dkg@fifthhorseman.net
 COMMENT=       Use the OpenPGP web of trust to verify ssh connections
@@ -51,6 +49,8 @@ post-patch:
          ${WRKSRC}/src/monkeysphere-host \
          ${WRKSRC}/src/monkeysphere-authentication \
          ${WRKSRC}/src/monkeysphere
+       # and clean up cruft from the sed replacements:
+       ${FIND} ${WRKSRC} -name '*.bak' -delete
 
 post-install:
        @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \