diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2013-11-03 12:32:32 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2013-11-03 12:32:32 +0000 |
commit | f8f89779aed4cb6b3f1d61be9db8ceb948b783d7 (patch) | |
tree | 396cb591bdc6ee2145f965236a05b0fed080f0a4 /mail/bsmtp | |
parent | 9b2238e0aff784f91831b0e69f713ec076be0558 (diff) | |
download | ports-f8f89779aed4cb6b3f1d61be9db8ceb948b783d7.tar.gz ports-f8f89779aed4cb6b3f1d61be9db8ceb948b783d7.zip |
Notes
Diffstat (limited to 'mail/bsmtp')
-rw-r--r-- | mail/bsmtp/Makefile | 49 | ||||
-rw-r--r-- | mail/bsmtp/files/config.sed | 8 | ||||
-rw-r--r-- | mail/bsmtp/files/patch-Makefile.in | 14 | ||||
-rw-r--r-- | mail/bsmtp/files/patch-configure | 8 | ||||
-rw-r--r-- | mail/bsmtp/files/patch-rsmtp.in | 6 | ||||
-rw-r--r-- | mail/bsmtp/pkg-plist | 13 |
6 files changed, 56 insertions, 42 deletions
diff --git a/mail/bsmtp/Makefile b/mail/bsmtp/Makefile index 55ba03cc5634..c6bc6360de1d 100644 --- a/mail/bsmtp/Makefile +++ b/mail/bsmtp/Makefile @@ -10,6 +10,8 @@ MASTER_SITE_SUBDIR= naddy MAINTAINER= naddy@FreeBSD.org COMMENT= Batch SMTP support for sendmail, incoming and outgoing +RUN_DEPENDS= ${LOCALBASE}/bin/uux:${PORTSDIR}/net/freebsd-uucp + CONFLICTS= smail-3.* USES= shebangfix perl5 @@ -18,12 +20,6 @@ HAS_CONFIGURE= yes CONFIGURE_ARGS= --redo SHEBANG_FILES= configure -NO_STAGE= yes -.include <bsd.port.pre.mk> - -RUN_DEPENDS= ${LOCALBASE}/bin/uux:${PORTSDIR}/net/freebsd-uucp -UUPREFIX= ${LOCALBASE} - post-patch: @${CP} ${WRKSRC}/bsmtp.m4.8.9.in ${WRKSRC}/bsmtp.m4.8.10.in @${CP} ${FILESDIR}/bsmtp.m4.8.11.in ${WRKSRC}/ @@ -33,13 +29,38 @@ post-patch: pre-configure: @${SED} <${FILESDIR}/config.sed >${WRKSRC}/config.sed \ - -e 's:%%CC%%:${CC}:' \ - -e 's:%%CFLAGS%%:${CFLAGS}:' \ - -e 's:%%PREFIX%%:${PREFIX}:' \ - -e 's:%%UUPREFIX%%:${UUPREFIX}:' + -e 's:%%CC%%:${CC}:' \ + -e 's:%%CFLAGS%%:${CFLAGS}:' \ + -e 's:%%PERL%%:${PERL}:' \ + -e 's:%%PREFIX%%:${PREFIX}:' \ + -e 's:%%LOCALBASE%%:${LOCALBASE}:' -post-install: - ${MKDIR} ${PREFIX}/share/doc/bsmtp - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bsmtp/ +privbin= ${STAGEDIR}${PREFIX}/libexec/bsmtp +pubbin= ${STAGEDIR}${PREFIX}/bin +mailerdir= ${STAGEDIR}${PREFIX}/share/sendmail + +do-install: + ${MKDIR} ${privbin} + ${MKDIR} ${mailerdir} + ${INSTALL_PROGRAM} ${WRKSRC}/batcher.new ${privbin}/batcher + ${INSTALL_PROGRAM} ${WRKSRC}/bsmtp ${privbin} + ${INSTALL_DATA} ${WRKSRC}/bsmtp.m4.8.14 ${mailerdir}/bsmtp.m4 + ${INSTALL_SCRIPT} ${WRKSRC}/rcsmtp ${pubbin} +.for i in cbsmtp crsmtp rgsmtp + ${LN} -s rcsmtp ${pubbin}/$i +.endfor + ${INSTALL_PROGRAM} ${WRKSRC}/rsmtp.wrapper ${pubbin}/rsmtp + ${INSTALL_SCRIPT} ${WRKSRC}/rsmtp ${privbin} +.for i in bsmtp + ${LN} -s rsmtp ${pubbin}/$i +.endfor +.for i in c-cbsmtp c-rcsmtp g-rcsmtp g-rgsmtp n-rsmtp + ${INSTALL_SCRIPT} ${WRKSRC}/transmitter.$i ${privbin} +.endfor + ${INSTALL_PROGRAM} ${WRKSRC}/_bqueue ${pubbin} + ${INSTALL_SCRIPT} ${WRKSRC}/bqueue ${pubbin} +# post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/mail/bsmtp/files/config.sed b/mail/bsmtp/files/config.sed index 47dad38823a7..b5b349720951 100644 --- a/mail/bsmtp/files/config.sed +++ b/mail/bsmtp/files/config.sed @@ -3,9 +3,9 @@ s,@CC@,%%CC%%, s,@INSTALL@,/usr/bin/install, s,@SH@,/bin/sh, s,@GZIP@,/usr/bin/gzip, -s,@PERL@,/usr/bin/perl, +s,@PERL@,%%PERL%%, s,@COMPRESS@,/usr/bin/compress, -s,@UUX@,%%UUPREFIX%%/bin/uux, +s,@UUX@,%%LOCALBASE%%/bin/uux, s,@SENDMAIL@,/usr/sbin/sendmail, s,@CFLAGS@,%%CFLAGS%%, s,@PRIVBINDIR@,%%PREFIX%%/libexec/bsmtp, @@ -20,9 +20,9 @@ s,@DAEMONUID@,66, s,@INPROTO@,BSMTP, s,@LOCALHOSTNAME@,`hostname`, s,@DOMAINSUFFIX@,none, -s,@SENDMAILVERS@,8.13, +s,@SENDMAILVERS@,8.14, s,@INSTALLMAILER@,true, -s,@MAILERVERSION@,8.13, +s,@MAILERVERSION@,8.14, s,@FLOCK@,true, s,@LOCKDEFINE@,-DUSE_FLOCK, s,@BATCHER@,batcher.new, diff --git a/mail/bsmtp/files/patch-Makefile.in b/mail/bsmtp/files/patch-Makefile.in deleted file mode 100644 index 824efaee8cdc..000000000000 --- a/mail/bsmtp/files/patch-Makefile.in +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- Makefile.in.orig Thu Sep 5 15:38:26 2002 -+++ Makefile.in Thu Sep 5 15:38:51 2002 -@@ -103,7 +103,7 @@ - mkdir -p $(mailerdir) || mkdir $(mailerdir) || exit 0 ; \ - chown $(binusr) $(mailerdir) ; \ - chgrp $(bingrp) $(mailerdir) ; \ -- chmod 644 $(mailerdir) ; \ -+ chmod 755 $(mailerdir) ; \ - fi - $(install) -c -o $(binusr) -g $(bingrp) -m 555 $(batcher) \ - $(privbin)/batcher || ( cp $(batcher) /tmp/batcher && \ diff --git a/mail/bsmtp/files/patch-configure b/mail/bsmtp/files/patch-configure index 56ff15c81d87..22b7e859c2d8 100644 --- a/mail/bsmtp/files/patch-configure +++ b/mail/bsmtp/files/patch-configure @@ -1,9 +1,9 @@ $FreeBSD$ ---- configure.orig -+++ configure -@@ -41,6 +41,11 @@ +--- configure.orig 2013-11-01 19:55:42.000000000 +0100 ++++ configure 2013-11-01 19:55:42.000000000 +0100 +@@ -41,6 +41,11 @@ if ($#ARGV == 0) { "batcher", "batcher.c", "bsmtp.c", @@ -15,7 +15,7 @@ $FreeBSD$ "bsmtp.m4.8.9", "bsmtp.m4.8.8", "bsmtp.m4.8.7", -@@ -198,6 +203,16 @@ +@@ -198,6 +203,16 @@ if (! $redo) { $default[$i] = '8.8'; } elsif ($value{'@SENDMAILVERS@'} =~ /^\s*8\.9(\..*)?\s*$/) { $default[$i] = '8.9'; diff --git a/mail/bsmtp/files/patch-rsmtp.in b/mail/bsmtp/files/patch-rsmtp.in index c8be41aa310d..af3b0de0f65d 100644 --- a/mail/bsmtp/files/patch-rsmtp.in +++ b/mail/bsmtp/files/patch-rsmtp.in @@ -1,9 +1,9 @@ $FreeBSD$ ---- rsmtp.in.orig -+++ rsmtp.in -@@ -72,7 +72,7 @@ +--- rsmtp.in.orig 1999-05-16 11:24:09.000000000 +0200 ++++ rsmtp.in 2013-11-01 19:55:42.000000000 +0100 +@@ -72,7 +72,7 @@ while (<>) { print STDERR "Recipient: $r\n" if ($debug); push (@recipients, $r); } diff --git a/mail/bsmtp/pkg-plist b/mail/bsmtp/pkg-plist index f154daf89924..46a9c80ab4e6 100644 --- a/mail/bsmtp/pkg-plist +++ b/mail/bsmtp/pkg-plist @@ -1,5 +1,9 @@ @comment $FreeBSD$ +@owner uucp +@mode 4555 bin/_bqueue +@mode +@owner bin/bqueue bin/bsmtp bin/cbsmtp @@ -8,17 +12,20 @@ bin/rcsmtp bin/rgsmtp bin/rsmtp libexec/bsmtp/batcher +@mode 4555 libexec/bsmtp/bsmtp +@mode libexec/bsmtp/rsmtp libexec/bsmtp/transmitter.c-cbsmtp libexec/bsmtp/transmitter.c-rcsmtp libexec/bsmtp/transmitter.g-rcsmtp libexec/bsmtp/transmitter.g-rgsmtp libexec/bsmtp/transmitter.n-rsmtp -share/doc/bsmtp/README +%%DOCSDIR%%/README share/sendmail/bsmtp.m4 @dirrm libexec/bsmtp @dirrm share/doc/bsmtp @dirrm share/sendmail -@exec mkdir -pm 770 /var/spool/bsmtp; chown uucp:uucp /var/spool/bsmtp -@unexec rmdir /var/spool/bsmtp || true +@exec install -d -o uucp -g uucp -m 0770 /var/spool/bsmtp +@comment Do not use rmdir to avoid inappropriate pkg tools magic +@unexec rm -d /var/spool/bsmtp 2>/dev/null || true |