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

(-)dkfilter/Makefile (+14 lines)
Lines 23-34 Link Here
23
RUN_DEPENDS=	${BUILD_DEPENDS}
23
RUN_DEPENDS=	${BUILD_DEPENDS}
24
24
25
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
26
USE_RC_SUBR=	yes
26
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
27
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
27
28
29
RCDIR?=		${PREFIX}/etc/rc.d
30
31
PLIST_SUB=	RCDIR=${RCDIR:S,^${PREFIX}/,,}
32
28
.include <bsd.port.pre.mk>
33
.include <bsd.port.pre.mk>
29
34
35
RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
36
30
.if ${PERL_LEVEL} < 500600
37
.if ${PERL_LEVEL} < 500600
31
IGNORE=	Perl 5.8 or newer required. Install lang/perl5.8 and try again.
38
IGNORE=	Perl 5.8 or newer required. Install lang/perl5.8 and try again.
32
.endif
39
.endif
40
41
post-install:
42
.for i in dkfilter_in dkfilter_out
43
	${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
44
		${FILESDIR}/${i}.sh > ${WRKDIR}/${i}.sh
45
	${INSTALL_SCRIPT} ${WRKDIR}/${i}.sh ${RCDIR}/${i}.sh
46
.endfor
33
47
34
.include <bsd.port.post.mk>
48
.include <bsd.port.post.mk>
(-)dkfilter/distinfo (+1 lines)
Lines 1-2 Link Here
1
MD5 (dkfilter.tgz) = ab0bab68dc09d3a86acccd1115b4c28a
1
MD5 (dkfilter.tgz) = ab0bab68dc09d3a86acccd1115b4c28a
2
SHA256 (dkfilter.tgz) = 7113453ab611f322513fb980d5e50026435934d60e863511ac1e7e3a87400742
2
SIZE (dkfilter.tgz) = 76885
3
SIZE (dkfilter.tgz) = 76885
(-)dkfilter/files/dkfilter_in.sh (+56 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD$
3
#
4
5
# PROVIDE: dkfilter_in
6
# REQUIRE: LOGIN
7
# BEFORE: mail
8
# KEYWORD: FreeBSD shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable dkfilter.in:
12
#
13
# dkfilter_in_enable="YES"
14
#
15
16
. %%RC_SUBR%%
17
18
name=dkfilter_in
19
rcvar=`set_rcvar`
20
21
# set defaults
22
23
dkfilter_in_enable=${dkfilter_in_enable:-"NO"}
24
dkfilter_in_flags=${dkfilter_in_flags:-"127.0.0.1:10025 127.0.0.1:10026"}
25
dkfilter_in_pidfile=${dkfilter_in_pidfile:-"/var/run/dkfilter_in.pid"}
26
dkfilter_in_user=${dkfilter_user:-"dkfilter"}
27
28
start_cmd="dkfilter_in_start"
29
stop_cmd="dkfilter_in_stop"
30
31
dkfilter_in_start()
32
{
33
	if [ -f ${dkfilter_in_pidfile} ]; then
34
		echo "${name} already running?"
35
		exit 1
36
	fi
37
	touch ${dkfilter_in_pidfile}
38
	chown ${dkfilter_in_user} ${dkfilter_in_pidfile}
39
	su -m ${dkfilter_in_user} -c "daemon -p ${dkfilter_in_pidfile} \
40
		%%PREFIX%%/bin/dkfilter.in ${dkfilter_in_flags}"
41
	echo "Starting ${name}"
42
}
43
44
dkfilter_in_stop()
45
{
46
	if [ ! -f ${dkfilter_in_pidfile} ]; then
47
		echo "${name} not running?"
48
		exit 1
49
	fi
50
	kill `cat ${dkfilter_in_pidfile}`
51
	rm -f ${dkfilter_in_pidfile}
52
	echo "Stopping ${name}"
53
}
54
55
load_rc_config $name
56
run_rc_command "$1"
(-)dkfilter/files/dkfilter_out.sh (+62 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD$
3
#
4
5
# PROVIDE: dkfilter_out
6
# REQUIRE: LOGIN
7
# BEFORE: mail
8
# KEYWORD: FreeBSD shutdown
9
10
#
11
# Add the following lines to /etc/rc.conf to enable dkfilter.out:
12
#
13
# dkfilter_out_enable="YES"
14
#
15
# Before you enable dkfilter.out, you also need to make your domainkey to
16
# set it to DNS and configurate dkfilter_flags.
17
#
18
19
. %%RC_SUBR%%
20
21
name="dkfilter_out"
22
rcvar=`set_rcvar`
23
24
# set defaults
25
26
dkfilter_out_enable=${dkfilter_out_enable:-"NO"}
27
dkfilter_out_flags=${dkfilter_out_flags:-" --header \
28
	--keyfile=%%PREFIX%%/etc/dkfilter/private.key \
29
	--selector=selector1 --domain=example.org --method=nofws \
30
	127.0.0.1:10027 127.0.0.1:10028"}
31
dkfilter_out_pidfile=${dkfilter_out_pidfile:-"/var/run/dkfilter_out.pid"}
32
dkfilter_out_user=${dkfilter_user:-"dkfilter"}
33
34
start_cmd="dkfilter_out_start"
35
stop_cmd="dkfilter_out_stop"
36
37
dkfilter_out_start()
38
{
39
	if [ -f ${dkfilter_out_pidfile} ]; then
40
		echo "${name} already running?"
41
		exit 1
42
	fi 
43
	touch ${dkfilter_out_pidfile}
44
	chown ${dkfilter_out_user} ${dkfilter_out_pidfile}
45
	su -m ${dkfilter_out_user} -c "daemon -p ${dkfilter_out_pidfile} \
46
		%%PREFIX%%/bin/dkfilter.out ${dkfilter_out_flags}"
47
	echo "Starting ${name}."
48
}
49
50
dkfilter_out_stop()
51
{
52
	if [ ! -f ${dkfilter_out_pidfile} ]; then
53
		echo "${name} not running?"
54
		exit 1
55
	fi
56
	kill `cat ${dkfilter_out_pidfile}`
57
	rm -f ${dkfilter_out_pidfile}
58
	echo "Stopping ${name}"
59
}
60
61
load_rc_config $name
62
run_rc_command "$1"
(-)dkfilter/files/patch-Signature.pm (+23 lines)
Line 0 Link Here
1
--- lib/Mail/DomainKeys/Signature.pm.orig	Wed Jun 22 00:43:53 2005
2
+++ lib/Mail/DomainKeys/Signature.pm	Sat Nov 12 01:49:56 2005
3
@@ -78,14 +78,15 @@
4
 	$self->algorithm and
5
 		$text .= "a=" . $self->algorithm . "; ";
6
 
7
+	$text .= "q=" . $self->protocol . "; ";
8
+	$text .= "c=" . $self->method . ";\n\t";
9
+	$text .= "s=" . $self->selector . "; ";
10
+	$text .= "d=" . $self->domain . ";\n\t";
11
+
12
 	$self->headerlist and
13
-		$text .= "h=" . $self->headerlist . "; ";
14
+		$text .= "h=" . $self->headerlist . ";\n\t";
15
 
16
 	$text .= "b=" . $self->signature . "; ";
17
-	$text .= "c=" . $self->method . "; ";
18
-	$text .= "d=" . $self->domain . "; ";
19
-	$text .= "q=" . $self->protocol . "; ";
20
-	$text .= "s=" . $self->selector;
21
 
22
 	length $text and
23
 		return $text;
(-)dkfilter/pkg-descr (-2 / +2 lines)
Lines 1-7 Link Here
1
This is implementation of DomainKeys draft standard for the Postfix mail
1
This is an implementation of DomainKeys draft standard for the Postfix mail
2
transfer agent.  DomainKeys is proposed by Yahoo!, Inc. and this is a scheme
2
transfer agent.  DomainKeys is proposed by Yahoo!, Inc. and this is a scheme
3
to sign and verify e-mail messages on a per-domain basis.
3
to sign and verify e-mail messages on a per-domain basis.
4
Protocol and other issues about this draft standard can be found at
4
Protocol and other issues about this draft standard can be found at
5
http://antispam.yahoo.com/domain/keys.
5
http://antispam.yahoo.com/domainkeys.
6
6
7
WWW: http://jason.long.name/dkfilter/
7
WWW: http://jason.long.name/dkfilter/
(-)dkfilter/pkg-plist (+2 lines)
Lines 13-18 Link Here
13
bin/dkverify.pl
13
bin/dkverify.pl
14
bin/dkfilter.in
14
bin/dkfilter.in
15
bin/dkfilter.out
15
bin/dkfilter.out
16
%%RCDIR%%/dkfilter_out.sh
17
%%RCDIR%%/dkfilter_in.sh
16
@dirrm lib/Mail/DomainKeys/Key
18
@dirrm lib/Mail/DomainKeys/Key
17
@dirrm lib/Mail/DomainKeys
19
@dirrm lib/Mail/DomainKeys
18
@dirrm lib/Mail
20
@dirrm lib/Mail

Return to bug 88881