View | Details | Raw Unified | Return to bug 191518
Collapse All | Expand All

(-)archivesmtp/Makefile (-16 / +8 lines)
Lines 1-8 Link Here
1
# Created by: Netherby <netherby@dancingfortune.com>
1
# Created by: Netherby <netherby@dancingfortune.com>
2
# $FreeBSD: head/mail/archivesmtp/Makefile 340722 2014-01-22 17:00:46Z mat $
2
# $FreeBSD$
3
3
4
PORTNAME=	archivesmtp
4
PORTNAME=	archivesmtp
5
PORTVERSION=	1.1.b1
5
PORTVERSION=	1.2
6
CATEGORIES=	mail
6
CATEGORIES=	mail
7
MASTER_SITES=	http://www.dancingfortune.com/projects/archivesmtp/files/
7
MASTER_SITES=	http://www.dancingfortune.com/projects/archivesmtp/files/
8
8
Lines 14-35 Link Here
14
		-lmilter
14
		-lmilter
15
MAKE_ENV+=	LDADD="${LIBS}"\
15
MAKE_ENV+=	LDADD="${LIBS}"\
16
		BINDIR="${PREFIX}/sbin"\
16
		BINDIR="${PREFIX}/sbin"\
17
		MANDIR="${MANPREFIX}/man/man"\
17
		MANDIR="${MANPREFIX}/man/man"
18
		NO_MANCOMPRESS="yes"
19
18
20
USE_RC_SUBR=	archivesmtp
19
USE_RC_SUBR=	archivesmtp
21
SUB_FILES=	pkg-message
20
SUB_FILES=	pkg-message
22
SUB_LIST+=	SOCKETBASE=${SOCKETBASE}\
21
SUB_LIST+=	SOCKETBASE="${SOCKETBASE}"\
23
		SOCKETDIR=${SOCKETDIR}
22
		SOCKETDIR="${SOCKETDIR}"
24
PLIST_SUB+=	${SUB_LIST}
23
PLIST_SUB+=	${SUB_LIST}
25
24
26
MAN8=		archivesmtp.8
27
28
# Path for unix/local socket (by default also used for pid file)
25
# Path for unix/local socket (by default also used for pid file)
29
SOCKETBASE?=	/var/run
26
SOCKETBASE?=	/var/run
30
SOCKETDIR?=	archivesmtp
27
SOCKETDIR?=	archivesmtp
31
28
32
NO_STAGE=	yes
33
.include <bsd.port.pre.mk>
29
.include <bsd.port.pre.mk>
34
30
35
# Sets up libmilter dependencies and options
31
# Sets up libmilter dependencies and options
Lines 42-53 Link Here
42
38
43
post-install:
39
post-install:
44
	# Install sample configuration file
40
	# Install sample configuration file
45
	${INSTALL_DATA} ${WRKSRC}/src/archivesmtp.conf.sample ${PREFIX}/etc
41
	${INSTALL_DATA} ${WRKSRC}/src/archivesmtp.conf.sample ${STAGEDIR}${PREFIX}/etc
46
	# Create directory for unix/local socket
42
	# Create socket directory
47
	${MKDIR} ${SOCKETBASE}/${SOCKETDIR}
43
	${MKDIR} ${STAGEDIR}${SOCKETBASE}/${SOCKETDIR}
48
	${CHOWN} nobody ${SOCKETBASE}/${SOCKETDIR}
49
	${CHMOD} 755 ${SOCKETBASE}/${SOCKETDIR}
50
	# Print post install message
51
	@${CAT} ${PKGMESSAGE}
52
44
53
.include <bsd.port.post.mk>
45
.include <bsd.port.post.mk>
(-)archivesmtp/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (archivesmtp-1.1.b1.tar.gz) = 0b4c8ddb15262721801c929fd104549c63d569af82ba9aaa5d26294ad88f72d8
1
SHA256 (archivesmtp-1.2.tar.gz) = b3ec9e21271dbfd130b2603a9c6f98d1091d9ff9d675094f74a21b2f3b099c54
2
SIZE (archivesmtp-1.1.b1.tar.gz) = 101835
2
SIZE (archivesmtp-1.2.tar.gz) = 120810
(-)archivesmtp/files/archivesmtp.in (-2 / +6 lines)
Lines 1-12 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
# $FreeBSD$
4
#
3
# PROVIDE: archivesmtp
5
# PROVIDE: archivesmtp
4
# BEFORE: mail
6
# BEFORE: mail
7
# KEYWORD: shutdown
5
8
6
. /etc/rc.subr
9
. /etc/rc.subr
7
10
8
name="archivesmtp"
11
name="archivesmtp"
9
rcvar=archivesmtp_enable
12
rcvar=`set_rcvar`
10
13
11
command="%%PREFIX%%/sbin/${name}"
14
command="%%PREFIX%%/sbin/${name}"
12
15
Lines 18-26 Link Here
18
: ${archivesmtp_socket="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"}
21
: ${archivesmtp_socket="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"}
19
: ${archivesmtp_config="%%PREFIX%%/etc/archivesmtp.conf"}
22
: ${archivesmtp_config="%%PREFIX%%/etc/archivesmtp.conf"}
20
: ${archivesmtp_pidfile="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"}
23
: ${archivesmtp_pidfile="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"}
24
# archivesmtp_flags= May be used to set optional behaviours.
21
25
22
pidfile="${archivesmtp_pidfile}"
26
pidfile="${archivesmtp_pidfile}"
23
27
24
command_args="${archivesmtp_flags} -p ${archivesmtp_socket} -f ${archivesmtp_config} -u ${archivesmtp_chuser} -r ${archivesmtp_pidfile} &"
28
command_args="-p ${archivesmtp_socket} -f ${archivesmtp_config} -u ${archivesmtp_chuser} -r ${archivesmtp_pidfile} ${archivesmtp_flags} &"
25
29
26
run_rc_command "$1"
30
run_rc_command "$1"
(-)archivesmtp/pkg-descr (-1 / +1 lines)
Lines 4-9 Link Here
4
programs is also supported. The libmilter interface is used and must be
4
programs is also supported. The libmilter interface is used and must be
5
supported by the MTA for ArchiveSMTP to work.
5
supported by the MTA for ArchiveSMTP to work.
6
6
7
Version: 1.1.b1
7
Version: 1.2
8
8
9
WWW: http://www.dancingfortune.com/projects/archivesmtp/
9
WWW: http://www.dancingfortune.com/projects/archivesmtp/
(-)archivesmtp/pkg-plist (-4 / +4 lines)
Lines 1-7 Link Here
1
sbin/archivesmtp
1
sbin/archivesmtp
2
etc/archivesmtp.conf.sample
2
etc/archivesmtp.conf.sample
3
@stopdaemon archivesmtp
3
man/man8/archivesmtp.8.gz
4
@owner nobody
5
@mode 755
4
@exec mkdir -p %%SOCKETBASE%%/%%SOCKETDIR%%
6
@exec mkdir -p %%SOCKETBASE%%/%%SOCKETDIR%%
5
@exec chown nobody %%SOCKETBASE%%/%%SOCKETDIR%%
7
@dirrmtry %%SOCKETBASE%%/%%SOCKETDIR%%
6
@cwd %%SOCKETBASE%%
7
@dirrm %%SOCKETDIR%%

Return to bug 191518