1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- 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 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:
AFFECTS: users of devel/libical
AUTHOR: gnome@FreeBSD.org

View File

@ -6,19 +6,21 @@
#
PORTNAME= opensmtpd
PORTVERSION= 201210090136
PORTVERSION= 201212222206
CATEGORIES= mail
MASTER_SITES= http://www.opensmtpd.org/archives/ \
http://distfiles.pirateparty.in/ashish/
DISTNAME= ${PORTNAME}-${PORTVERSION}p1
MAINTAINER= ashish@FreeBSD.org
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
WRKSRC= ${WRKDIR}/${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}-5.2.xp1
USE_AUTOTOOLS= autoconf:env automake:env libtool:env
GNU_CONFIGURE= yes
@ -30,7 +32,7 @@ SUB_FILES= pkg-install pkg-deinstall
CONFLICTS= postfix-[0-9]* sendmail-[0-9]*
MAN8= makemap.8 newaliases.8 smtpctl.8 smtpd.8
MAN5= smtpd.conf.5
MAN5= smtpd.conf.5 aliases.5 forward.5
USERS= _smtpd
GROUPS= _smtpd

View File

@ -1,2 +1,2 @@
SHA256 (opensmtpd-201210090136.tar.gz) = de3eecd447e5554ada9129632f1184d33930eb2c5721d535ddfe90696912cdd2
SIZE (opensmtpd-201210090136.tar.gz) = 253466
SHA256 (opensmtpd-201212222206p1.tar.gz) = 49da146abfbe37a4364e006d1ceb801526cda34cc1831e5996e6f3ec18dc102e
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
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
fi

View File

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

View File

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