aboutsummaryrefslogtreecommitdiff
path: root/mail/bsmtp
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2001-11-15 23:03:46 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2001-11-15 23:03:46 +0000
commit4b6a859a6a1fa6d84db9887da14adb973ee8a2a6 (patch)
treef5bb1618e605a62ff75cb1bdcefbf11f10888a48 /mail/bsmtp
parentacdc9486034cccce1254d068e60bf003ab1a7250 (diff)
downloadports-4b6a859a6a1fa6d84db9887da14adb973ee8a2a6.tar.gz
ports-4b6a859a6a1fa6d84db9887da14adb973ee8a2a6.zip
Notes
Diffstat (limited to 'mail/bsmtp')
-rw-r--r--mail/bsmtp/Makefile15
-rw-r--r--mail/bsmtp/files/config.sed2
2 files changed, 14 insertions, 3 deletions
diff --git a/mail/bsmtp/Makefile b/mail/bsmtp/Makefile
index 9a76a16c48b7..9a199323a038 100644
--- a/mail/bsmtp/Makefile
+++ b/mail/bsmtp/Makefile
@@ -6,6 +6,7 @@
PORTNAME= bsmtp
PORTVERSION= 1.02
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.stud.uni-karlsruhe.de/~uk1o/bsmtp/
@@ -15,14 +16,24 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --redo
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500024
+UUPREFIX= /usr
+.else
+RUN_DEPENDS= ${LOCALBASE}/bin/uux:${PORTSDIR}/net/freebsd-uucp
+UUPREFIX= ${LOCALBASE}
+.endif
+
pre-configure:
@${SED} <${FILESDIR}/config.sed >${WRKSRC}/config.sed \
-e 's:%%CC%%:${CC}:' \
-e 's:%%CFLAGS%%:${CFLAGS}:' \
- -e 's:%%PREFIX%%:${PREFIX}:'
+ -e 's:%%PREFIX%%:${PREFIX}:' \
+ -e 's:%%UUPREFIX%%:${UUPREFIX}:'
post-install:
${MKDIR} ${PREFIX}/share/doc/bsmtp
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bsmtp/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/bsmtp/files/config.sed b/mail/bsmtp/files/config.sed
index 88447bcc976c..d083dc5d4624 100644
--- a/mail/bsmtp/files/config.sed
+++ b/mail/bsmtp/files/config.sed
@@ -5,7 +5,7 @@ s,@SH@,/bin/sh,
s,@GZIP@,/usr/bin/gzip,
s,@PERL@,/usr/bin/perl,
s,@COMPRESS@,/usr/bin/compress,
-s,@UUX@,/usr/bin/uux,
+s,@UUX@,%%UUPREFIX%%/bin/uux,
s,@SENDMAIL@,/usr/sbin/sendmail,
s,@CFLAGS@,%%CFLAGS%%,
s,@PRIVBINDIR@,%%PREFIX%%/libexec,