use SUB_FILES to adjust pkg-message

use LOCALBASE instead of PREFIX in CFLAGS & LDFLAGS
use PLIST_FILES instead of a seperate file

PR:		142798
Submitted by:	Sevan Janiyan <venture37 at geeklan.co.uk>
This commit is contained in:
Yen-Ming Lee 2010-01-14 00:11:13 +00:00
parent 28850e37bc
commit 672024c9b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247834
4 changed files with 13 additions and 10 deletions

View file

@ -20,6 +20,13 @@ USE_GMAKE= yes
MAKE_ENV= _LDFLAGS="${LDFLAGS}"
SCRIPTS_ENV= PKG_PREFIX=${PREFIX} NONEXISTENT=${NONEXISTENT} PASSWD=/etc/passwd
PLIST_FILES= etc/pop3vscan.conf.sample \
etc/pop3vscan.mail.sample \
etc/rc.d/pop3vscan.sh \
sbin/pop3vscan
SUB_FILES= pkg-message
post-extract:
@${RM} ${WRKSRC}/ripmime/ripmime.a
@ -38,6 +45,6 @@ do-install:
post-install:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${SED} -e 's,PREFIX,${PREFIX},g' ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View file

@ -9,8 +9,8 @@
#CFLAGS=-Wall -ggdb
-CFLAGS=-Wall -O2
-LDFLAGS=-L. -lmime -lpcre #-static
+CFLAGS=-Wall -O2 -I$(PREFIX)/include -DPREFIX=\"${PREFIX}\"
+LDFLAGS=-L. -lmime -lpcre -L$(PREFIX)/lib $(_LDFLAGS) #-static
+CFLAGS=-Wall -O2 -I$(LOCALBASE)/include -DPREFIX=\"${PREFIX}\"
+LDFLAGS=-L. -lmime -lpcre -L$(LOCALBASE)/lib $(_LDFLAGS) #-static
OBJECTS=getline.o parsefile.o pop3vscan.o \
scanner_basic.o scanner_avpd.o scanner_trophie.o

View file

@ -1,11 +1,11 @@
**********************************************************************
By default, POP3VScan is configured to work with McAfee UVSCAN.
Please copy PREFIX/etc/pop3vscan.conf.sample to pop3vscan.conf and modify
PREFIX/etc/pop3vscan.conf and/or PREFIX/etc/rc.d/pop3vscan.sh to
Please copy %%PREFIX%%/etc/pop3vscan.conf.sample to pop3vscan.conf and modify
%%PREFIX%%/etc/pop3vscan.conf and/or %%PREFIX%%/etc/rc.d/pop3vscan.sh to
fit your environment.
Don't forget to copy PREFIX/etc/pop3vscan.mail.sample to pop3vscan.mail
Don't forget to copy %%PREFIX%%/etc/pop3vscan.mail.sample to pop3vscan.mail
and edit your own template for virus notifications.
By the way, you need to enable the IPFIREWALL opion in kernel. Please note,

View file

@ -1,4 +0,0 @@
etc/pop3vscan.conf.sample
etc/pop3vscan.mail.sample
etc/rc.d/pop3vscan.sh
sbin/pop3vscan