- Update to latest snapshot 201212222206

- Add dependency on databases/sqlite3
- Remove ABI version from LIB_DEPENDS
- Document the configuration change in UPDATING
This commit is contained in:
Ashish SHUKLA 2013-01-02 13:25:05 +00:00
parent 76a59c9720
commit e32b141f64
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309815
8 changed files with 64 additions and 30 deletions

View file

@ -5,6 +5,14 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades. you update your ports collection, before attempting any port upgrades.
20130102:
AFFECTS: users of mail/opensmtpd
AUTHOR: ashish@FreeBSD.org
OpenSMTPD port has been updated to the latest portable snapshot. There
has been several changes to the configuration between the last version
and this version, which requires configuration file need to be reviewed.
20121229: 20121229:
AFFECTS: users of devel/libical AFFECTS: users of devel/libical
AUTHOR: gnome@FreeBSD.org AUTHOR: gnome@FreeBSD.org

View file

@ -6,19 +6,21 @@
# #
PORTNAME= opensmtpd PORTNAME= opensmtpd
PORTVERSION= 201210090136 PORTVERSION= 201212222206
CATEGORIES= mail CATEGORIES= mail
MASTER_SITES= http://www.opensmtpd.org/archives/ \ MASTER_SITES= http://www.opensmtpd.org/archives/ \
http://distfiles.pirateparty.in/ashish/ http://distfiles.pirateparty.in/ashish/
DISTNAME= ${PORTNAME}-${PORTVERSION}p1
MAINTAINER= ashish@FreeBSD.org MAINTAINER= ashish@FreeBSD.org
COMMENT= OpenSMTPD is a free MTA COMMENT= OpenSMTPD is a free MTA
LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent LIB_DEPENDS= event-1:${PORTSDIR}/devel/libevent \
sqlite3:${PORTSDIR}/databases/sqlite3
LICENSE_NAME= ISCL LICENSE_NAME= ISCL
WRKSRC= ${WRKDIR}/${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME}-5.2.xp1
USE_AUTOTOOLS= autoconf:env automake:env libtool:env USE_AUTOTOOLS= autoconf:env automake:env libtool:env
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
@ -30,7 +32,7 @@ SUB_FILES= pkg-install pkg-deinstall
CONFLICTS= postfix-[0-9]* sendmail-[0-9]* CONFLICTS= postfix-[0-9]* sendmail-[0-9]*
MAN8= makemap.8 newaliases.8 smtpctl.8 smtpd.8 MAN8= makemap.8 newaliases.8 smtpctl.8 smtpd.8
MAN5= smtpd.conf.5 MAN5= smtpd.conf.5 aliases.5 forward.5
USERS= _smtpd USERS= _smtpd
GROUPS= _smtpd GROUPS= _smtpd

View file

@ -1,2 +1,2 @@
SHA256 (opensmtpd-201210090136.tar.gz) = de3eecd447e5554ada9129632f1184d33930eb2c5721d535ddfe90696912cdd2 SHA256 (opensmtpd-201212222206p1.tar.gz) = 49da146abfbe37a4364e006d1ceb801526cda34cc1831e5996e6f3ec18dc102e
SIZE (opensmtpd-201210090136.tar.gz) = 253466 SIZE (opensmtpd-201212222206p1.tar.gz) = 416789

View file

@ -0,0 +1,42 @@
$FreeBSD$
--- smtpd/Makefile.am.orig
+++ smtpd/Makefile.am
@@ -97,7 +97,7 @@
CFLAGS+= -D_GNU_SOURCE
CPPFLAGS= -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@
-PATHS= -DSMTPD_CONFDIR=\"$(sysconfdir)\" \
+PATHS= -DSMTPD_CONFDIR=\"$(sysconfdir)/mail\" \
-DPATH_SMTPCTL=\"$(sbindir)/smtpctl\" \
-DPATH_MAILLOCAL=\"$(libexecdir)/mail.local\"
@@ -116,7 +116,7 @@
../contrib/lib/libc/asr/asr_private.h \
$(CONFIGFILES_IN) $(MANPAGES_IN)
-PATHSUBS= -e 's|/etc/mail/|$(sysconfdir)/|g' \
+PATHSUBS= -e 's|/etc/mail/|$(sysconfdir)/mail/|g' \
-e 's|/usr/libexec|$(libexecdir)|g' \
-e 's|/var/run/smtpd.sock|$(sockdir)/smtpd.sock|g'
@@ -142,16 +142,12 @@
# smtpd.conf
# newaliases makemap
install-exec-hook: $(CONFIGFILES) $(MANPAGES)
- $(MKDIR_P) $(DESTDIR)$(sysconfdir)
+ $(MKDIR_P) $(DESTDIR)$(sysconfdir)/mail
$(MKDIR_P) $(DESTDIR)$(bindir)
$(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)5
$(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)8
- @if [ ! -f $(DESTDIR)$(sysconfdir)/smtpd.conf ]; then \
- $(INSTALL) -m 644 smtpd.conf.out $(DESTDIR)$(sysconfdir)/smtpd.conf; \
- else \
- echo "$(DESTDIR)$(sysconfdir)/smtpd.conf already exists, install will not overwrite"; \
- fi
+ $(INSTALL) -m 644 smtpd.conf.out $(DESTDIR)$(sysconfdir)/mail/smtpd.conf.sample
ln -f $(DESTDIR)$(sbindir)/smtpctl$(EXEEXT) \
$(DESTDIR)$(bindir)/mailq$(EXEEXT);

View file

@ -1,19 +0,0 @@
$FreeBSD$
--- src/Makefile.am.orig
+++ src/Makefile.am
@@ -107,10 +107,10 @@
$(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)5
$(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)8
- @if [ ! -f $(DESTDIR)$(sysconfdir)/mail/smtpd.conf ]; then \
- $(INSTALL) -m 644 smtpd.conf.out $(DESTDIR)$(sysconfdir)/mail/smtpd.conf; \
+ @if [ ! -f $(DESTDIR)$(sysconfdir)/mail/smtpd.conf.sample ]; then \
+ $(INSTALL) -m 644 smtpd.conf.out $(DESTDIR)$(sysconfdir)/mail/smtpd.conf.sample; \
else \
- echo "$(DESTDIR)$(sysconfdir)/mail/smtpd.conf already exists, install will not overwrite"; \
+ echo "$(DESTDIR)$(sysconfdir)/mail/smtpd.conf.sample already exists, install will not overwrite"; \
fi
@if [ ! -f $(DESTDIR)$(bindir)/mailq$(EXEEXT) ]; then \

View file

@ -7,7 +7,7 @@ PREFIX=$(echo %%PREFIX%% |sed -e 's,/,\\/,g')
if [ "$TARGET" = POST-DEINSTALL ]; then if [ "$TARGET" = POST-DEINSTALL ]; then
sed -e '/[[:space:]]'$PREFIX'\/sbin\/smtpctl/d' \ sed -e '/[[:space:]]'$PREFIX'\/sbin\/smtpctl/d' \
-e '/[[:space:]]'$PREFIX'\/libexec\/opensmtpd-portable\/makemap/d' \ -e '/[[:space:]]'$PREFIX'\/libexec\/opensmtpd\/makemap/d' \
-e 's/^### smtpd: //g' -i '' /etc/mail/mailer.conf -e 's/^### smtpd: //g' -i '' /etc/mail/mailer.conf
fi fi

View file

@ -9,8 +9,8 @@ if [ "$TARGET" = POST-INSTALL ]; then
sendmail %%PREFIX%%/sbin/smtpctl sendmail %%PREFIX%%/sbin/smtpctl
send-mail %%PREFIX%%/sbin/smtpctl send-mail %%PREFIX%%/sbin/smtpctl
mailq %%PREFIX%%/sbin/smtpctl mailq %%PREFIX%%/sbin/smtpctl
makemap %%PREFIX%%/libexec/opensmtpd-portable/makemap makemap %%PREFIX%%/libexec/opensmtpd/makemap
newaliases %%PREFIX%%/libexec/opensmtpd-portable/makemap newaliases %%PREFIX%%/libexec/opensmtpd/makemap
EOF EOF
fi fi

View file

@ -1,10 +1,11 @@
bin/mailq bin/mailq
bin/newaliases bin/newaliases
bin/smtpscript
etc/mail/smtpd.conf.sample etc/mail/smtpd.conf.sample
libexec/mail.local libexec/mail.local
libexec/opensmtpd-portable/makemap libexec/opensmtpd/makemap
sbin/makemap sbin/makemap
sbin/smtpctl sbin/smtpctl
sbin/smtpd sbin/smtpd
@dirrm libexec/opensmtpd-portable @dirrm libexec/opensmtpd
@dirrmtry etc/mail @dirrmtry etc/mail