mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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:
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
|
@ -20,6 +20,13 @@ USE_GMAKE= yes
|
||||||
MAKE_ENV= _LDFLAGS="${LDFLAGS}"
|
MAKE_ENV= _LDFLAGS="${LDFLAGS}"
|
||||||
SCRIPTS_ENV= PKG_PREFIX=${PREFIX} NONEXISTENT=${NONEXISTENT} PASSWD=/etc/passwd
|
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:
|
post-extract:
|
||||||
@${RM} ${WRKSRC}/ripmime/ripmime.a
|
@${RM} ${WRKSRC}/ripmime/ripmime.a
|
||||||
|
|
||||||
|
@ -38,6 +45,6 @@ do-install:
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||||
@${SED} -e 's,PREFIX,${PREFIX},g' ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
#CFLAGS=-Wall -ggdb
|
#CFLAGS=-Wall -ggdb
|
||||||
-CFLAGS=-Wall -O2
|
-CFLAGS=-Wall -O2
|
||||||
-LDFLAGS=-L. -lmime -lpcre #-static
|
-LDFLAGS=-L. -lmime -lpcre #-static
|
||||||
+CFLAGS=-Wall -O2 -I$(PREFIX)/include -DPREFIX=\"${PREFIX}\"
|
+CFLAGS=-Wall -O2 -I$(LOCALBASE)/include -DPREFIX=\"${PREFIX}\"
|
||||||
+LDFLAGS=-L. -lmime -lpcre -L$(PREFIX)/lib $(_LDFLAGS) #-static
|
+LDFLAGS=-L. -lmime -lpcre -L$(LOCALBASE)/lib $(_LDFLAGS) #-static
|
||||||
|
|
||||||
OBJECTS=getline.o parsefile.o pop3vscan.o \
|
OBJECTS=getline.o parsefile.o pop3vscan.o \
|
||||||
scanner_basic.o scanner_avpd.o scanner_trophie.o
|
scanner_basic.o scanner_avpd.o scanner_trophie.o
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
|
|
||||||
By default, POP3VScan is configured to work with McAfee UVSCAN.
|
By default, POP3VScan is configured to work with McAfee UVSCAN.
|
||||||
Please copy PREFIX/etc/pop3vscan.conf.sample to pop3vscan.conf and modify
|
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
|
%%PREFIX%%/etc/pop3vscan.conf and/or %%PREFIX%%/etc/rc.d/pop3vscan.sh to
|
||||||
fit your environment.
|
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.
|
and edit your own template for virus notifications.
|
||||||
|
|
||||||
By the way, you need to enable the IPFIREWALL opion in kernel. Please note,
|
By the way, you need to enable the IPFIREWALL opion in kernel. Please note,
|
|
@ -1,4 +0,0 @@
|
||||||
etc/pop3vscan.conf.sample
|
|
||||||
etc/pop3vscan.mail.sample
|
|
||||||
etc/rc.d/pop3vscan.sh
|
|
||||||
sbin/pop3vscan
|
|
Loading…
Add table
Reference in a new issue