From 0233d20d88a2dc4fa76d83717a4ee23a05565549 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 21 Jan 2004 08:14:29 +0000 Subject: Move @exec/@unexec PLIST actions into a INSTALL file. --- databases/postgresql-lib/INSTALL | 14 ++++++++++++++ databases/postgresql-lib/Makefile | 8 ++++---- databases/postgresql-lib/PLIST | 4 +--- 3 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 databases/postgresql-lib/INSTALL (limited to 'databases') 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} -- cgit v1.2.3