--- Makefile (revision 526625) +++ Makefile (working copy) @@ -4,6 +4,7 @@ PORTNAME= e2guardian PORTVERSION= 5.3.4 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= www MAINTAINER= marcellocoutinho@gmail.com @@ -73,11 +74,8 @@ PLIST_SUB+= SCANNERS="@comment " .endif -SUB_FILES= pkg-message pkg-install +SUB_FILES= pkg-message -pre-configure: - @cd ${WRKSRC} && ${SH} ${WRKSRC}/autogen.sh - post-install: @${FIND} ${STAGEDIR}${ETCDIR} -type f \ \( -name '*.conf' -or -name '*list' -or -name '*.story' \) \ @@ -99,4 +97,5 @@ ${STAGEDIR}${ETCDIR}/lists/contentscanners/ @${MV} ${STAGEDIR}${ETCDIR}/lists/exceptionvirussiteiplist.sample \ ${STAGEDIR}${ETCDIR}/lists/contentscanners/ + .include --- files/pkg-install.in (revision 526625) +++ files/pkg-install.in (nonexistent) @@ -1,32 +0,0 @@ -#!/bin/sh -# -# - -PATH=/bin:/usr/bin:/usr/sbin -pkgname=$1 -e2guardian_confdir="${PKG_PREFIX:-%%PREFIX%%}/etc/e2guardian" - -case $2 in -PRE-INSTALL) - echo "===> Pre-installation configuration for ${pkgname}" - ;; -POST-INSTALL) - # Populate initial config files in case of new install in a way - # to avoid overwrite of existing config files. - - sample_files=$(find ${e2guardian_confdir}/e2guardian -name "*.sample" -print) - echo ${sample_files} - for file in ${sample_files} ; do - file2=$(echo $file | rev | cut -c8- | rev) - if [ ! -f ${file2} -a -f ${file} ]; then - echo "Creating ${file2} from ${file}..." - install -c -o root -g wheel -m 0644 ${file} ${file2} - fi - done - ;; -*) - exit 33 - ;; -esac -exit 0 -