1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Update from 1.1.b1 to 1.2

- Add stage support

PR:		ports/191518
Submitted by:	netherby@hotmail.com
This commit is contained in:
Danilo Egea Gondolfo 2014-07-24 21:18:55 +00:00
parent 17b4c270c4
commit 3a5a3067be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362854
5 changed files with 24 additions and 26 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= archivesmtp
PORTVERSION= 1.1.b1
PORTVERSION= 1.2
CATEGORIES= mail
MASTER_SITES= http://www.dancingfortune.com/projects/archivesmtp/files/
@ -12,24 +12,18 @@ COMMENT= SMTP mail archiver
CFLAGS+= ${PTHREAD_CFLAGS}
LIBS+= ${PTHREAD_LIBS}\
-lmilter
MAKE_ENV+= LDADD="${LIBS}"\
BINDIR="${PREFIX}/sbin"\
MANDIR="${MANPREFIX}/man/man"\
NO_MANCOMPRESS="yes"
MAKE_ENV+= LDADD="${LIBS}"
USE_RC_SUBR= archivesmtp
SUB_FILES= pkg-message
SUB_LIST+= SOCKETBASE=${SOCKETBASE}\
SOCKETDIR=${SOCKETDIR}
SUB_LIST+= SOCKETBASE="${SOCKETBASE}"\
SOCKETDIR="${SOCKETDIR}"
PLIST_SUB+= ${SUB_LIST}
MAN8= archivesmtp.8
# Path for unix/local socket (by default also used for pid file)
SOCKETBASE?= /var/run
SOCKETDIR?= archivesmtp
NO_STAGE= yes
.include <bsd.port.pre.mk>
# Sets up libmilter dependencies and options
@ -40,14 +34,14 @@ pre-build:
${CP} ${FILESDIR}/top-Makefile ${WRKSRC}/Makefile
${CP} ${FILESDIR}/src-Makefile ${WRKSRC}/src/Makefile
do-install:
${INSTALL} -s ${WRKSRC}/src/archivesmtp ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/src/archivesmtp.8 ${STAGEDIR}${PREFIX}/man/man8
post-install:
# Install sample configuration file
${INSTALL_DATA} ${WRKSRC}/src/archivesmtp.conf.sample ${PREFIX}/etc
# Create directory for unix/local socket
${MKDIR} ${SOCKETBASE}/${SOCKETDIR}
${CHOWN} nobody ${SOCKETBASE}/${SOCKETDIR}
${CHMOD} 755 ${SOCKETBASE}/${SOCKETDIR}
# Print post install message
@${CAT} ${PKGMESSAGE}
${INSTALL_DATA} ${WRKSRC}/src/archivesmtp.conf.sample ${STAGEDIR}${PREFIX}/etc
# Create socket directory
@${MKDIR} ${STAGEDIR}${SOCKETBASE}/${SOCKETDIR}
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (archivesmtp-1.1.b1.tar.gz) = 0b4c8ddb15262721801c929fd104549c63d569af82ba9aaa5d26294ad88f72d8
SIZE (archivesmtp-1.1.b1.tar.gz) = 101835
SHA256 (archivesmtp-1.2.tar.gz) = b3ec9e21271dbfd130b2603a9c6f98d1091d9ff9d675094f74a21b2f3b099c54
SIZE (archivesmtp-1.2.tar.gz) = 120810

View File

@ -1,12 +1,15 @@
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: archivesmtp
# BEFORE: mail
# KEYWORD: shutdown
. /etc/rc.subr
name="archivesmtp"
rcvar=archivesmtp_enable
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/${name}"
@ -18,9 +21,10 @@ load_rc_config "$name"
: ${archivesmtp_socket="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"}
: ${archivesmtp_config="%%PREFIX%%/etc/archivesmtp.conf"}
: ${archivesmtp_pidfile="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"}
# archivesmtp_flags= May be used to set optional behaviours.
pidfile="${archivesmtp_pidfile}"
command_args="${archivesmtp_flags} -p ${archivesmtp_socket} -f ${archivesmtp_config} -u ${archivesmtp_chuser} -r ${archivesmtp_pidfile} &"
command_args="-p ${archivesmtp_socket} -f ${archivesmtp_config} -u ${archivesmtp_chuser} -r ${archivesmtp_pidfile} ${archivesmtp_flags} &"
run_rc_command "$1"

View File

@ -4,6 +4,6 @@ specific locations in mbox format. Adding headers and piping output to other
programs is also supported. The libmilter interface is used and must be
supported by the MTA for ArchiveSMTP to work.
Version: 1.1.b1
Version: 1.2
WWW: http://www.dancingfortune.com/projects/archivesmtp/

View File

@ -1,7 +1,7 @@
sbin/archivesmtp
etc/archivesmtp.conf.sample
@stopdaemon archivesmtp
man/man8/archivesmtp.8.gz
@owner nobody
@mode 755
@exec mkdir -p %%SOCKETBASE%%/%%SOCKETDIR%%
@exec chown nobody %%SOCKETBASE%%/%%SOCKETDIR%%
@cwd %%SOCKETBASE%%
@dirrm %%SOCKETDIR%%
@dirrmtry %%SOCKETBASE%%/%%SOCKETDIR%%