aboutsummaryrefslogtreecommitdiff
path: root/security/pam-pgsql
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2001-03-30 18:20:29 +0000
committerMikhail Teterin <mi@FreeBSD.org>2001-03-30 18:20:29 +0000
commit34cf5e431b5cce471ee1f24cdfc3abb826342b2e (patch)
treec8cdfe42ebc8dfa080b5a5d55fc66022036061cd /security/pam-pgsql
parentc42d0b93332190eb28574eb79e4e7493bf5ca6ce (diff)
downloadports-34cf5e431b5cce471ee1f24cdfc3abb826342b2e.tar.gz
ports-34cf5e431b5cce471ee1f24cdfc3abb826342b2e.zip
Fix the package building (I used - in the Makefile, but _ in the
pkg-plist) by passing the DOCDIR variable through PLIST_SUB. Remove my own PLIST_SUB hackery that predated (and, hopefully, inspired) the now standard PORTDOCS addition. Surprisingly enough, there still is no version 0.4 of this thing on the distsite... Submitted by: bento (and fenner's script -- many thanks)
Notes
Notes: svn path=/head/; revision=40599
Diffstat (limited to 'security/pam-pgsql')
-rw-r--r--security/pam-pgsql/Makefile11
-rw-r--r--security/pam-pgsql/pkg-plist8
2 files changed, 8 insertions, 11 deletions
diff --git a/security/pam-pgsql/Makefile b/security/pam-pgsql/Makefile
index 3f9f9e040729..f7688756ab5d 100644
--- a/security/pam-pgsql/Makefile
+++ b/security/pam-pgsql/Makefile
@@ -26,15 +26,12 @@ MAKE_ARGS+= -j 2
post-install:
${CAT} ${PKGMESSAGE}
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCDIR}
+ @${MKDIR} ${LOCALBASE}/${DOCDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/debian/changelog \
- ${WRKSRC}/debian/copyright ${DOCDIR}
+ ${WRKSRC}/debian/copyright ${LOCALBASE}/${DOCDIR}
-PLIST_SUB+= DOC=''
-DOCDIR= ${LOCALBASE}/share/doc/pam-pgsql
-
-.else
-PLIST_SUB+= DOC='@comment '
+DOCDIR= share/doc/pam-pgsql
+PLIST_SUB+= DOCDIR=${DOCDIR}
.endif
.include <bsd.port.mk>
diff --git a/security/pam-pgsql/pkg-plist b/security/pam-pgsql/pkg-plist
index 1bd61e594b21..a91967e2542c 100644
--- a/security/pam-pgsql/pkg-plist
+++ b/security/pam-pgsql/pkg-plist
@@ -1,6 +1,6 @@
-%%DOC%%share/doc/pam_pgsql/README
-%%DOC%%share/doc/pam_pgsql/changelog
-%%DOC%%share/doc/pam_pgsql/copyright
-%%DOC%%@dirrm share/doc/pam_pgsql
+%%PORTDOCS%%%%DOCDIR%%/README
+%%PORTDOCS%%%%DOCDIR%%/changelog
+%%PORTDOCS%%%%DOCDIR%%/copyright
+%%PORTDOCS%%@dirrm %%DOCDIR%%
@cwd /usr
lib/pam_pgsql.so