ports/189616: [maintainer update] security/yafic: Add stage support
Allan Saddi
allan at saddi.com
Sat May 10 16:50:00 UTC 2014
>Number: 189616
>Category: ports
>Synopsis: [maintainer update] security/yafic: Add stage support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat May 10 16:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Allan Saddi
>Release: 10.0-RELEASE-p2
>Organization:
>Environment:
FreeBSD 10.0-RELEASE-p2 #0: Tue Apr 29 17:06:01 UTC 2014 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN yafic.orig/Makefile yafic/Makefile
--- yafic.orig/Makefile 2014-01-22 09:00:46.000000000 -0800
+++ yafic/Makefile 2014-05-10 09:25:47.812640839 -0700
@@ -3,6 +3,7 @@
PORTNAME= yafic
PORTVERSION= 1.2.2
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF
@@ -10,7 +11,7 @@
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=""
.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} -f ${STAGEDIR}${PREFIX}/bin/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} -f ${STAGEDIR}${PREFIX}/man/man1/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 -ruN yafic.orig/pkg-plist yafic/pkg-plist
--- yafic.orig/pkg-plist 2014-01-22 07:16:56.000000000 -0800
+++ yafic/pkg-plist 2014-05-10 09:11:33.222699146 -0700
@@ -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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list