aboutsummaryrefslogtreecommitdiffstats
path: root/security/yafic
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2014-05-11 07:00:24 +0800
committerrakuco <rakuco@FreeBSD.org>2014-05-11 07:00:24 +0800
commite8bd26fc737e6994a055f811867b7ba619b95c15 (patch)
tree8309e54e4ccb5b1590c3304dc25f85b369bee329 /security/yafic
parentef7d29253e73d5d8f984e20d5a374e2402541bf5 (diff)
downloadfreebsd-ports-gnome-e8bd26fc737e6994a055f811867b7ba619b95c15.tar.gz
freebsd-ports-gnome-e8bd26fc737e6994a055f811867b7ba619b95c15.tar.zst
freebsd-ports-gnome-e8bd26fc737e6994a055f811867b7ba619b95c15.zip
Support staging.
PR: ports/189616 Submitted by: Allan Saddi <allan@saddi.com> (maintainer)
Diffstat (limited to 'security/yafic')
-rw-r--r--security/yafic/Makefile35
-rw-r--r--security/yafic/pkg-plist4
2 files changed, 20 insertions, 19 deletions
diff --git a/security/yafic/Makefile b/security/yafic/Makefile
index 94b9f33a23b5..1e2d41709285 100644
--- a/security/yafic/Makefile
+++ b/security/yafic/Makefile
@@ -3,6 +3,7 @@
PORTNAME= yafic
PORTVERSION= 1.2.2
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF
@@ -10,7 +11,7 @@ MAINTAINER= allan@saddi.com
COMMENT= Yet Another File Integrity Checker, similar to Tripwire
GNU_CONFIGURE= yes
-USE_GMAKE= yes
+USES= gmake
LDFLAGS+= -static
.if defined(WITHOUT_OPENSSL)
@@ -20,31 +21,27 @@ PLIST_SUB+= CRYPTO="@comment "
PLIST_SUB+= CRYPTO=""
.endif
-MAN1= yafic.1
-.if !defined(WITHOUT_OPENSSL)
-MAN1+= yafic-sign.1
-MLINKS= yafic-sign.1 yafic-check.1
-.endif
-MAN5= yafic.conf.5
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+post-patch:
+ @${SED} -e "s;@@PREFIX@@;${PREFIX};g" \
+ ${.CURDIR}/pkg-message > ${PKGMESSAGE}
-NO_STAGE= yes
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/yafic ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/yafic ${STAGEDIR}${PREFIX}/bin
.if !defined(WITHOUT_OPENSSL)
- ${INSTALL_PROGRAM} ${WRKSRC}/yafic-sign ${PREFIX}/bin
- ${LN} -f ${PREFIX}/bin/yafic-sign ${PREFIX}/bin/yafic-check
+ ${INSTALL_PROGRAM} ${WRKSRC}/yafic-sign ${STAGEDIR}${PREFIX}/bin
+ ${LN} -sf yafic-sign ${STAGEDIR}${PREFIX}/bin/yafic-check
.endif
- ${INSTALL_MAN} ${WRKSRC}/yafic.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/yafic.1 ${STAGEDIR}${PREFIX}/man/man1
.if !defined(WITHOUT_OPENSSL)
- ${INSTALL_MAN} ${WRKSRC}/yafic-sign.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/yafic-sign.1 ${STAGEDIR}${PREFIX}/man/man1
+ ${LN} -sf yafic-sign.1 ${STAGEDIR}${PREFIX}/man/man1/yafic-check.1
.endif
- ${INSTALL_MAN} ${WRKSRC}/yafic.conf.5 ${PREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/yafic.conf.5 ${STAGEDIR}${PREFIX}/man/man5
post-install:
- @${MKDIR} ${PREFIX}/share/examples/yafic
- @${CP} ${FILESDIR}/yafic.conf.sample ${EXAMPLESDIR}
- @${ECHO}
- @${SED} -e "s%@@PREFIX@@%${PREFIX}%g" ${PKGMESSAGE}
- @${ECHO}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/yafic
+ @${CP} ${FILESDIR}/yafic.conf.sample ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/security/yafic/pkg-plist b/security/yafic/pkg-plist
index 84ba9fa5f86d..748879f2ed1f 100644
--- a/security/yafic/pkg-plist
+++ b/security/yafic/pkg-plist
@@ -1,5 +1,9 @@
bin/yafic
%%CRYPTO%%bin/yafic-sign
%%CRYPTO%%bin/yafic-check
+man/man1/yafic.1.gz
+%%CRYPTO%%man/man1/yafic-check.1.gz
+%%CRYPTO%%man/man1/yafic-sign.1.gz
+man/man5/yafic.conf.5.gz
%%EXAMPLESDIR%%/yafic.conf.sample
@dirrm share/examples/yafic