diff options
author | jlam <jlam@pkgsrc.org> | 2004-01-21 08:14:29 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-01-21 08:14:29 +0000 |
commit | ac0245b68c7f06db98f224281ddc2708f8a3b5aa (patch) | |
tree | 5b8e23a043cfae9b496383a63e2d6b470fe566a0 | |
parent | 4ea5e626c5dd30472bb8d7410dedbeedcdce5600 (diff) | |
download | pkgsrc-ac0245b68c7f06db98f224281ddc2708f8a3b5aa.tar.gz |
Move @exec/@unexec PLIST actions into a INSTALL file.
-rw-r--r-- | databases/postgresql-lib/INSTALL | 14 | ||||
-rw-r--r-- | databases/postgresql-lib/Makefile | 8 | ||||
-rw-r--r-- | databases/postgresql-lib/PLIST | 4 |
3 files changed, 19 insertions, 7 deletions
diff --git a/databases/postgresql-lib/INSTALL b/databases/postgresql-lib/INSTALL new file mode 100644 index 00000000000..58a480a61a6 --- /dev/null +++ b/databases/postgresql-lib/INSTALL @@ -0,0 +1,14 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2004/01/21 08:14:29 jlam Exp $ + +case ${STAGE} in +POST-INSTALL) + ${RM} -f ${PKG_PREFIX}/include/pgsql + ${LN} -fs postgresql ${PKG_PREFIX}/include/pgsql + ;; + +DEINSTALL) + ${RM} -f ${PKG_PREFIX}/include/pgsql + ;; +esac diff --git a/databases/postgresql-lib/Makefile b/databases/postgresql-lib/Makefile index 1071823dc86..9c6f4f04b61 100644 --- a/databases/postgresql-lib/Makefile +++ b/databases/postgresql-lib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2004/01/20 14:23:09 jlam Exp $ +# $NetBSD: Makefile,v 1.14 2004/01/21 08:14:29 jlam Exp $ PKGNAME= postgresql-lib-${BASE_VERS} PKGREVISION= 1 @@ -14,7 +14,9 @@ BUILD_DIRS= ${WRKSRC}/src/include BUILD_DIRS+= ${WRKSRC}/src/interfaces BUILD_DIRS+= ${WRKSRC}/src/pl -.include "../../mk/bsd.prefs.mk" +USE_PKGINSTALL= yes +DEINSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL +INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL post-buildlink: # @@ -30,8 +32,6 @@ post-install: ${MAKE_PROGRAM} install-all-headers ${GTAR} zxCf ${PREFIX}/man ${WRKSRC}/doc/man.tar.gz \ `${SED} -e "s|^#.*||" ${FILESDIR}/man.lib` - ${RM} -f ${PREFIX}/include/pgsql - ${LN} -sf postgresql ${PREFIX}/include/pgsql .include "../../security/openssl/buildlink2.mk" .include "../../mk/bsd.pkg.mk" diff --git a/databases/postgresql-lib/PLIST b/databases/postgresql-lib/PLIST index ef4d0f8548f..755544ed25f 100644 --- a/databases/postgresql-lib/PLIST +++ b/databases/postgresql-lib/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2003/01/05 20:12:24 jlam Exp $ +@comment $NetBSD: PLIST,v 1.5 2004/01/21 08:14:29 jlam Exp $ bin/ecpg include/postgresql/ecpgerrno.h include/postgresql/ecpglib.h @@ -366,5 +366,3 @@ man/man1/ecpg.1 @dirrm include/postgresql/internal/lib @dirrm include/postgresql/internal @dirrm include/postgresql -@exec ${RM} -f %D/include/pgsql; ${LN} -sf postgresql %D/include/pgsql || ${TRUE} -@unexec ${RM} -f %D/include/pgsql || ${TRUE} |