diff options
author | Cy Schubert <cy@FreeBSD.org> | 2015-06-19 05:44:57 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2015-06-19 05:44:57 +0000 |
commit | a7862307e6c71d122094a49e1a40eff51fb8e7e1 (patch) | |
tree | 8979533fa79abfc72faebcadca92cd482a421d95 /security/tripwire/Makefile | |
parent | e656781d671aa366d6b6e0c53554f849f3e16e81 (diff) | |
download | ports-a7862307e6c71d122094a49e1a40eff51fb8e7e1.tar.gz ports-a7862307e6c71d122094a49e1a40eff51fb8e7e1.zip |
Notes
Diffstat (limited to 'security/tripwire/Makefile')
-rw-r--r-- | security/tripwire/Makefile | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/security/tripwire/Makefile b/security/tripwire/Makefile index 9b8865f2143f..4ddc6f9c2e50 100644 --- a/security/tripwire/Makefile +++ b/security/tripwire/Makefile @@ -3,7 +3,7 @@ PORTNAME= tripwire PORTVERSION= 2.4.2.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-src/${PORTNAME}-${PORTVERSION} DISTNAME= ${PORTNAME}-${PORTVERSION}-src @@ -91,7 +91,8 @@ TWPOL_TXT?= ${FILESDIR}/twpol.m4 CONFIGURE_ARGS= --prefix=${PREFIX} --program-transform-name='' --sysconfdir=${TWCFG} PLIST_SUB+= TWCFG=${TWCFG} TWDB=${TWDB} -PKGINSTALL= ${WRKDIR}/pkg-install +PKGPOSTINSTALL= ${WRKDIR}/pkg-postinstall +PKGPOSTDEINSTALL= ${WRKDIR}/pkg-deinstall SUB_FILES= pkg-deinstall SUB_LIST= TWCFG=${TWCFG} TWDB=${TWDB} @@ -128,38 +129,38 @@ install-config-files: .endif make-pkg-install: - @ ${ECHO_CMD} '#!/bin/sh -' > ${PKGINSTALL} - @ ${ECHO_CMD} '#' >> ${PKGINSTALL} - @ ${ECHO_CMD} "# Generated by make-${PKGINSTALL} on `date`" >> ${PKGINSTALL} - @ ${ECHO_CMD} '#' >> ${PKGINSTALL} - @ ${ECHO_CMD} 'case $$2 in' >> ${PKGINSTALL} - @ ${ECHO_CMD} 'POST-INSTALL) ;;' >> ${PKGINSTALL} - @ ${ECHO_CMD} '*) exit 0;;' >> ${PKGINSTALL} - @ ${ECHO_CMD} 'esac' >> ${PKGINSTALL} - @ ${ECHO_CMD} PACKAGE_INSTALLER=yes >> ${PKGINSTALL} - @ ${ECHO_CMD} POLICYSRC=/tmp/$$$$.tmp >> ${PKGINSTALL} - @ ${ECHO_CMD} PREFIX="$(PREFIX)" >> ${PKGINSTALL} - @ ${ECHO_CMD} DO_NOT_CONFIG=yes >> ${PKGINSTALL} - @ ${ECHO_CMD} TW_CLOBBER="false" >> ${PKGINSTALL} - @ ${ECHO_CMD} TW_PROMPT="false" >> ${PKGINSTALL} - @ ${ECHO_CMD} sysconfdir="$(sysconfdir)" >> ${PKGINSTALL} - @ ${ECHO_CMD} prefix=${PREFIX} >> ${PKGINSTALL} - @ ${ECHO_CMD} sysconfdir=${TWCFG} >> ${PKGINSTALL} - @ ${ECHO_CMD} path_to_vi="/usr/bin/vi" >> ${PKGINSTALL} - @ ${ECHO_CMD} path_to_sendmail="/usr/sbin/sendmail" >> ${PKGINSTALL} - @ ${ECHO_CMD} BASE_DIR=${PREFIX}/ >> ${PKGINSTALL} - @ ${ECHO_CMD} BIN_DIR=${PREFIX}/sbin >> ${PKGINSTALL} + @ ${ECHO_CMD} '#!/bin/sh -' > ${PKGPOSTINSTALL} + @ ${ECHO_CMD} '#' >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} "# Generated by make-${PKGPOSTINSTALL} on `date`" >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} '#' >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} 'case $$2 in' >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} 'POST-INSTALL) ;;' >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} '*) exit 0;;' >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} 'esac' >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} PACKAGE_INSTALLER=yes >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} POLICYSRC=/tmp/$$$$.tmp >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} PREFIX="$(PREFIX)" >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} DO_NOT_CONFIG=yes >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} TW_CLOBBER="false" >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} TW_PROMPT="false" >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} sysconfdir="$(sysconfdir)" >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} prefix=${PREFIX} >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} sysconfdir=${TWCFG} >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} path_to_vi="/usr/bin/vi" >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} path_to_sendmail="/usr/sbin/sendmail" >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} BASE_DIR=${PREFIX}/ >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} BIN_DIR=${PREFIX}/sbin >> ${PKGPOSTINSTALL} .ifdef TW_SITE_PASS - @ ${ECHO_CMD} TW_SITE_PASS=${TW_SITE_PASS} >> ${PKGINSTALL} + @ ${ECHO_CMD} TW_SITE_PASS=${TW_SITE_PASS} >> ${PKGPOSTINSTALL} .endif .ifdef TW_LOCAL_PASS - @ ${ECHO_CMD} TW_LOCAL_PASS=${TW_LOCAL_PASS} >> ${PKGINSTALL} + @ ${ECHO_CMD} TW_LOCAL_PASS=${TW_LOCAL_PASS} >> ${PKGPOSTINSTALL} .endif - @ ${CAT} ${WRKSRC}/install/install.cfg >> ${PKGINSTALL} - @ ${ECHO_CMD} ${CAT} "> /tmp/$$$$.tmp <<'EOF'" >> ${PKGINSTALL} - @ ${M4} -DFREEBSD_VERSION=`${ECHO_CMD} ${OSREL} | ${CUT} -d. -f1` < ${TWPOL_TXT} >> ${PKGINSTALL} - @ ${ECHO_CMD} EOF >> ${PKGINSTALL} - @ ${SED} "/^\. /s/^/: /;/^BASE_DIR=/d;s/BIN_DIR=/: BIN_DIR=/;/^POLICYSRC/d" ${WRKSRC}/install/install.sh >> ${PKGINSTALL} + @ ${CAT} ${WRKSRC}/install/install.cfg >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} ${CAT} "> /tmp/$$$$.tmp <<'EOF'" >> ${PKGPOSTINSTALL} + @ ${M4} -DFREEBSD_VERSION=`${ECHO_CMD} ${OSREL} | ${CUT} -d. -f1` < ${TWPOL_TXT} >> ${PKGPOSTINSTALL} + @ ${ECHO_CMD} EOF >> ${PKGPOSTINSTALL} + @ ${SED} "/^\. /s/^/: /;/^BASE_DIR=/d;s/BIN_DIR=/: BIN_DIR=/;/^POLICYSRC/d" ${WRKSRC}/install/install.sh >> ${PKGPOSTINSTALL} create-database: .ifndef PACKAGE_BUILDING |