FreeBSD ports/security/pam_af/Makefile

Yarema yds at CoolRat.org
Mon Jan 21 10:41:49 PST 2008


Pryvet Stat,

I tweaked the FreeBSD ports/security/pam_af/Makefile a little.
Since bsd.port.mk has:

.if ${PREFIX} == /usr
MANPREFIX?=	/usr/share
.else
MANPREFIX?=	${PREFIX}
.endif

...then this patch allow installing and uninstalling with PREFIX=/usr 
correctly:

-	${INSTALL_MAN} ${WRKSRC}/pam_af.8 ${PREFIX}/man/man8
-	${INSTALL_MAN} ${WRKSRC}/pam_af_tool/pam_af_tool.8 ${PREFIX}/man/man8
+	${INSTALL_MAN} ${WRKSRC}/pam_af.8 ${MANPREFIX}/man/man8
+	${INSTALL_MAN} ${WRKSRC}/pam_af_tool/pam_af_tool.8 ${MANPREFIX}/man/man8

I also changed
-	${INSTALL_PROGRAM} ${WRKSRC}/pam_af.so ${PREFIX}/lib
+	${INSTALL_DATA} ${WRKSRC}/pam_af.so ${PREFIX}/lib
so the permissions match the rest of the system pam_*.so* files.

Since this patch does not change the way the port files install unless 
PREFIX=/usr is set bumping PORTREVISION is probably not necessary.

Thank you for the pam_af module.  Very useful.

-- 
Yarema
-------------- next part --------------
diff -u -r -N pam_af~/Makefile pam_af/Makefile
--- pam_af~/Makefile	2006-11-07 03:34:34.000000000 -0500
+++ pam_af/Makefile	2008-01-21 12:57:08.132782880 -0500
@@ -18,10 +18,10 @@
 MAN8=		pam_af.8 pam_af_tool.8
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/pam_af.so ${PREFIX}/lib
+	${INSTALL_DATA} ${WRKSRC}/pam_af.so ${PREFIX}/lib
 	${INSTALL_PROGRAM} ${WRKSRC}/pam_af_tool/pam_af_tool ${PREFIX}/sbin
-	${INSTALL_MAN} ${WRKSRC}/pam_af.8 ${PREFIX}/man/man8
-	${INSTALL_MAN} ${WRKSRC}/pam_af_tool/pam_af_tool.8 ${PREFIX}/man/man8
+	${INSTALL_MAN} ${WRKSRC}/pam_af.8 ${MANPREFIX}/man/man8
+	${INSTALL_MAN} ${WRKSRC}/pam_af_tool/pam_af_tool.8 ${MANPREFIX}/man/man8
 
 post-install:
 .if !defined(NOPORTDOCS)


More information about the freebsd-ports mailing list