summaryrefslogtreecommitdiff
path: root/databases/unixodbc/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-11-19 16:23:08 +0000
committerjlam <jlam@pkgsrc.org>2001-11-19 16:23:08 +0000
commitb23d2e86260aaa8ed2013bf77ad605b63e34b0ed (patch)
treed5fafec9bfc1b14f6b1c5da4d0c45beb2b4758b4 /databases/unixodbc/Makefile
parentc850f81b615ba9e58563fe40c1075ad3aea9ffa4 (diff)
downloadpkgsrc-b23d2e86260aaa8ed2013bf77ad605b63e34b0ed.tar.gz
Adapt to use shared INSTALL/DEINSTALL scripts by using the logic in
bsd.pkg.install.mk: * Remove old DEINSTALL/INSTALL scripts. * Move some text printed at POST-INSTALL time into the MESSAGE file. * Adjust rc.d scripts to respect rc.conf settings, so that the script may be directly copied into /etc/rc.d.
Diffstat (limited to 'databases/unixodbc/Makefile')
-rw-r--r--databases/unixodbc/Makefile32
1 files changed, 8 insertions, 24 deletions
diff --git a/databases/unixodbc/Makefile b/databases/unixodbc/Makefile
index 359db49ab39..4bde02d67a2 100644
--- a/databases/unixodbc/Makefile
+++ b/databases/unixodbc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/11/06 04:08:33 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2001/11/19 16:23:09 jlam Exp $
PKGNAME= unixodbc-${ODBC_VERS}
ODBC_PKG_VERS= # empty
@@ -11,37 +11,20 @@ USE_BUILDLINK_ONLY= YES
CONFIGURE_ARGS+= --disable-gui
-EGDIR= ${PREFIX}/share/examples/${PKGBASE}
-
-DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
-INSTALL_FILE= ${WRKDIR}/INSTALL
-
-PLIST_SUBST+= PKGBASE=${PKGBASE}
PLIST_SUBST+= UNIXODBC_DRIVERS_DIR=${UNIXODBC_DRIVERS_DIR}
-
-FILES_SUBST+= PKGBASE=${PKGBASE}
FILES_SUBST+= UNIXODBC_DRIVERS_DIR=${UNIXODBC_DRIVERS_DIR}
-FILES_SUBST+= PREFIX=${PREFIX}
-FILES_SUBST+= PKGBASE=${PKGBASE}
-FILES_SUBST+= CAT=${CAT:Q}
-FILES_SUBST+= CHMOD=${CHMOD:Q}
-FILES_SUBST+= CMP=${CMP:Q}
-FILES_SUBST+= CP=${CP:Q}
-FILES_SUBST+= ECHO=${ECHO:Q}
-FILES_SUBST+= MKDIR=${MKDIR:Q}
-FILES_SUBST+= RM=${RM:Q}
-FILES_SUBST+= RMDIR=${RMDIR:Q}
-FILES_SUBST+= TR=${TR:Q}
-FILES_SUBST+= TRUE=${TRUE:Q}
-FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
+
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+
+CONF_FILES= ${EGDIR}/odbcinst.ini ${CONFDIR}/odbcinst.ini
+CONF_FILES+= /dev/null ${CONFDIR}/odbc.ini
+OWN_DIRS= ${CONFDIR}/ODBCDataSources
post-patch: fix-driver-installation
pre-install:
${SED} ${FILES_SUBST_SED} ${FILESDIR}/odbcinst.ini.in \
> ${WRKDIR}/odbcinst.ini
- ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
- ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
post-install:
@@ -50,4 +33,5 @@ post-install:
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../devel/readline/buildlink.mk"
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"