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:
parent
17b4c270c4
commit
3a5a3067be
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362854
@ -2,7 +2,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= archivesmtp
|
PORTNAME= archivesmtp
|
||||||
PORTVERSION= 1.1.b1
|
PORTVERSION= 1.2
|
||||||
CATEGORIES= mail
|
CATEGORIES= mail
|
||||||
MASTER_SITES= http://www.dancingfortune.com/projects/archivesmtp/files/
|
MASTER_SITES= http://www.dancingfortune.com/projects/archivesmtp/files/
|
||||||
|
|
||||||
@ -12,24 +12,18 @@ COMMENT= SMTP mail archiver
|
|||||||
CFLAGS+= ${PTHREAD_CFLAGS}
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
||||||
LIBS+= ${PTHREAD_LIBS}\
|
LIBS+= ${PTHREAD_LIBS}\
|
||||||
-lmilter
|
-lmilter
|
||||||
MAKE_ENV+= LDADD="${LIBS}"\
|
MAKE_ENV+= LDADD="${LIBS}"
|
||||||
BINDIR="${PREFIX}/sbin"\
|
|
||||||
MANDIR="${MANPREFIX}/man/man"\
|
|
||||||
NO_MANCOMPRESS="yes"
|
|
||||||
|
|
||||||
USE_RC_SUBR= archivesmtp
|
USE_RC_SUBR= archivesmtp
|
||||||
SUB_FILES= pkg-message
|
SUB_FILES= pkg-message
|
||||||
SUB_LIST+= SOCKETBASE=${SOCKETBASE}\
|
SUB_LIST+= SOCKETBASE="${SOCKETBASE}"\
|
||||||
SOCKETDIR=${SOCKETDIR}
|
SOCKETDIR="${SOCKETDIR}"
|
||||||
PLIST_SUB+= ${SUB_LIST}
|
PLIST_SUB+= ${SUB_LIST}
|
||||||
|
|
||||||
MAN8= archivesmtp.8
|
|
||||||
|
|
||||||
# Path for unix/local socket (by default also used for pid file)
|
# Path for unix/local socket (by default also used for pid file)
|
||||||
SOCKETBASE?= /var/run
|
SOCKETBASE?= /var/run
|
||||||
SOCKETDIR?= archivesmtp
|
SOCKETDIR?= archivesmtp
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
# Sets up libmilter dependencies and options
|
# Sets up libmilter dependencies and options
|
||||||
@ -40,14 +34,14 @@ pre-build:
|
|||||||
${CP} ${FILESDIR}/top-Makefile ${WRKSRC}/Makefile
|
${CP} ${FILESDIR}/top-Makefile ${WRKSRC}/Makefile
|
||||||
${CP} ${FILESDIR}/src-Makefile ${WRKSRC}/src/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:
|
post-install:
|
||||||
# Install sample configuration file
|
# Install sample configuration file
|
||||||
${INSTALL_DATA} ${WRKSRC}/src/archivesmtp.conf.sample ${PREFIX}/etc
|
${INSTALL_DATA} ${WRKSRC}/src/archivesmtp.conf.sample ${STAGEDIR}${PREFIX}/etc
|
||||||
# Create directory for unix/local socket
|
# Create socket directory
|
||||||
${MKDIR} ${SOCKETBASE}/${SOCKETDIR}
|
@${MKDIR} ${STAGEDIR}${SOCKETBASE}/${SOCKETDIR}
|
||||||
${CHOWN} nobody ${SOCKETBASE}/${SOCKETDIR}
|
|
||||||
${CHMOD} 755 ${SOCKETBASE}/${SOCKETDIR}
|
|
||||||
# Print post install message
|
|
||||||
@${CAT} ${PKGMESSAGE}
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
SHA256 (archivesmtp-1.1.b1.tar.gz) = 0b4c8ddb15262721801c929fd104549c63d569af82ba9aaa5d26294ad88f72d8
|
SHA256 (archivesmtp-1.2.tar.gz) = b3ec9e21271dbfd130b2603a9c6f98d1091d9ff9d675094f74a21b2f3b099c54
|
||||||
SIZE (archivesmtp-1.1.b1.tar.gz) = 101835
|
SIZE (archivesmtp-1.2.tar.gz) = 120810
|
||||||
|
@ -1,12 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
# PROVIDE: archivesmtp
|
# PROVIDE: archivesmtp
|
||||||
# BEFORE: mail
|
# BEFORE: mail
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
. /etc/rc.subr
|
. /etc/rc.subr
|
||||||
|
|
||||||
name="archivesmtp"
|
name="archivesmtp"
|
||||||
rcvar=archivesmtp_enable
|
rcvar=`set_rcvar`
|
||||||
|
|
||||||
command="%%PREFIX%%/sbin/${name}"
|
command="%%PREFIX%%/sbin/${name}"
|
||||||
|
|
||||||
@ -18,9 +21,10 @@ load_rc_config "$name"
|
|||||||
: ${archivesmtp_socket="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"}
|
: ${archivesmtp_socket="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"}
|
||||||
: ${archivesmtp_config="%%PREFIX%%/etc/archivesmtp.conf"}
|
: ${archivesmtp_config="%%PREFIX%%/etc/archivesmtp.conf"}
|
||||||
: ${archivesmtp_pidfile="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"}
|
: ${archivesmtp_pidfile="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"}
|
||||||
|
# archivesmtp_flags= May be used to set optional behaviours.
|
||||||
|
|
||||||
pidfile="${archivesmtp_pidfile}"
|
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"
|
run_rc_command "$1"
|
||||||
|
@ -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
|
programs is also supported. The libmilter interface is used and must be
|
||||||
supported by the MTA for ArchiveSMTP to work.
|
supported by the MTA for ArchiveSMTP to work.
|
||||||
|
|
||||||
Version: 1.1.b1
|
Version: 1.2
|
||||||
|
|
||||||
WWW: http://www.dancingfortune.com/projects/archivesmtp/
|
WWW: http://www.dancingfortune.com/projects/archivesmtp/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
sbin/archivesmtp
|
sbin/archivesmtp
|
||||||
etc/archivesmtp.conf.sample
|
etc/archivesmtp.conf.sample
|
||||||
@stopdaemon archivesmtp
|
man/man8/archivesmtp.8.gz
|
||||||
|
@owner nobody
|
||||||
|
@mode 755
|
||||||
@exec mkdir -p %%SOCKETBASE%%/%%SOCKETDIR%%
|
@exec mkdir -p %%SOCKETBASE%%/%%SOCKETDIR%%
|
||||||
@exec chown nobody %%SOCKETBASE%%/%%SOCKETDIR%%
|
@dirrmtry %%SOCKETBASE%%/%%SOCKETDIR%%
|
||||||
@cwd %%SOCKETBASE%%
|
|
||||||
@dirrm %%SOCKETDIR%%
|
|
||||||
|
Loading…
Reference in New Issue
Block a user