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

(-)Makefile (-7 / +4 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	apinger
4
PORTNAME=	apinger
5
PORTVERSION=	0.6.1
5
PORTVERSION=	0.6.1
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	net ipv6
7
CATEGORIES=	net ipv6
8
MASTER_SITES=	http://freebsdcluster.org/~mich/software/ \
8
MASTER_SITES=	http://freebsdcluster.org/~mich/software/ \
9
		http://www.bnet.pl/~jajcus/apinger/
9
		http://www.bnet.pl/~jajcus/apinger/
Lines 16-32 Link Here
16
GNU_CONFIGURE=	yes
16
GNU_CONFIGURE=	yes
17
USE_RC_SUBR=	apinger
17
USE_RC_SUBR=	apinger
18
SUB_FILES=	pkg-message
18
SUB_FILES=	pkg-message
19
PORTDOCS=	AUTHORS NEWS README
19
20
20
OPTIONS_DEFINE=	IPV6
21
OPTIONS_DEFINE=	IPV6 DOCS
21
22
22
USES=		bison
23
USES=		bison
23
24
24
.include <bsd.port.options.mk>
25
IPV6_CONFIGURE_ENABLE=	ipv6
25
26
26
.if !${PORT_OPTIONS:MIPV6}
27
CONFIGURE_ARGS+=	--disable-ipv6
28
.endif
29
30
post-install:
27
post-install:
31
	${INSTALL_DATA} ${WRKSRC}/src/apinger.conf ${STAGEDIR}${PREFIX}/etc/apinger.conf.sample
28
	${INSTALL_DATA} ${WRKSRC}/src/apinger.conf ${STAGEDIR}${PREFIX}/etc/apinger.conf.sample
32
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
29
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)files/apinger.in (-7 / +7 lines)
Lines 9-28 Link Here
9
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
9
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
10
# to enable this service:
11
#
11
#
12
# apinger_enable (bool):   Set to NO by default.
12
# apinger_enable (bool):	Set to NO by default.
13
#               Set it to YES to enable apinger.
13
#				Set it to YES to enable apinger.
14
#
14
#
15
15
16
. /etc/rc.subr
16
. /etc/rc.subr
17
17
18
name="apinger"
18
name=apinger
19
rcvar=apinger_enable
19
rcvar=apinger_enable
20
20
21
load_rc_config $name
22
23
: ${apinger_enable:=NO}
24
21
command=%%PREFIX%%/sbin/${name}
25
command=%%PREFIX%%/sbin/${name}
22
pidfile=/var/run/${name}.pid
26
pidfile=/var/run/${name}.pid
23
27
24
load_rc_config $name
25
26
: ${apinger_enable="NO"}
27
28
run_rc_command "$1"
28
run_rc_command "$1"
(-)files/patch-src_apinger.h (-3 / +3 lines)
Lines 1-6 Link Here
1
--- src/apinger.h.old	2008-07-10 22:38:08.000000000 +0200
1
--- src/apinger.h.orig	2002-12-20 09:19:57 UTC
2
+++ src/apinger.h	2008-07-10 22:38:29.000000000 +0200
2
+++ src/apinger.h
3
@@ -119,7 +119,7 @@
3
@@ -119,7 +119,7 @@ extern char *config_file;
4
 
4
 
5
 extern int icmp_sock;
5
 extern int icmp_sock;
6
 extern int icmp6_sock;
6
 extern int icmp6_sock;
(-)files/patch-src_icmp.c (-2 / +2 lines)
Lines 1-6 Link Here
1
--- src/icmp.c.orig
1
--- src/icmp.c.orig	2002-12-19 08:24:33 UTC
2
+++ src/icmp.c
2
+++ src/icmp.c
3
@@ -197,7 +197,7 @@
3
@@ -197,7 +197,7 @@ socklen_t sl;
4
 	debug("checking CMSG...");
4
 	debug("checking CMSG...");
5
 	for (c = CMSG_FIRSTHDR(&msg); c; c = CMSG_NXTHDR(&msg, c)) {
5
 	for (c = CMSG_FIRSTHDR(&msg); c; c = CMSG_NXTHDR(&msg, c)) {
6
 		debug("CMSG level: %i type: %i",c->cmsg_level,c->cmsg_type);
6
 		debug("CMSG level: %i type: %i",c->cmsg_level,c->cmsg_type);
(-)files/patch-src_main.c (-4 / +4 lines)
Lines 1-6 Link Here
1
--- src/main.c.old	2008-07-10 22:36:21.000000000 +0200
1
--- src/main.c.orig	2003-03-26 11:27:47 UTC
2
+++ src/main.c	2008-07-10 22:36:53.000000000 +0200
2
+++ src/main.c
3
@@ -96,7 +96,7 @@
3
@@ -96,7 +96,7 @@ char *config_file=CONFIG;
4
 
4
 
5
 int icmp_sock;
5
 int icmp_sock;
6
 int icmp6_sock;
6
 int icmp6_sock;
Lines 9-15 Link Here
9
 
9
 
10
 struct timeval next_probe={0,0};
10
 struct timeval next_probe={0,0};
11
 
11
 
12
@@ -277,7 +277,7 @@
12
@@ -277,7 +277,7 @@ char *graph_location="/apinger/";
13
 		return 1;
13
 		return 1;
14
 	}
14
 	}
15
 
15
 
(-)pkg-plist (-4 / +1 lines)
Lines 1-5 Link Here
1
sbin/apinger
1
sbin/apinger
2
etc/apinger.conf.sample
2
@sample etc/apinger.conf.sample
3
%%DOCSDIR%%/README
4
%%DOCSDIR%%/NEWS
5
%%DOCSDIR%%/AUTHORS

Return to bug 204465