Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2008 13:31:28 -0500
From:      Yarema <yds@CoolRat.org>
To:        Stanislav Sedov <ssedov@mbsd.msk.ru>
Cc:        "FreeBSD.org" <ports@FreeBSD.org>
Subject:   FreeBSD ports/security/pam_af/Makefile
Message-ID:  <4794E500.8030608@CoolRat.org>

next in thread | raw e-mail | index | archive | help
This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_orion.dppl.net-72747-1200940288-0001-2
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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

--=_orion.dppl.net-72747-1200940288-0001-2
Content-Type: text/plain; name="pam_af.diff"; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="pam_af.diff"

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)

--=_orion.dppl.net-72747-1200940288-0001-2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4794E500.8030608>