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

(-)smokeping/Makefile (-5 / +9 lines)
Lines 2-12 Link Here
2
# Date created:				Tue Feb 12 22:17:40 CET 2002
2
# Date created:				Tue Feb 12 22:17:40 CET 2002
3
# Whom:                                 Lars Thegler <lars@thegler.dk>
3
# Whom:                                 Lars Thegler <lars@thegler.dk>
4
#
4
#
5
# $FreeBSD: ports/net/smokeping/Makefile,v 1.4 2002/04/28 16:26:21 pat Exp $
5
# $FreeBSD: ports/net/smokeping/Makefile,v 1.3 2002/04/02 01:10:03 kuriyama Exp $
6
#
6
#
7
7
8
PORTNAME=	smokeping
8
PORTNAME=	smokeping
9
PORTVERSION=	1.8
9
PORTVERSION=	1.12
10
CATEGORIES=	net www
10
CATEGORIES=	net www
11
MASTER_SITES=	http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/
11
MASTER_SITES=	http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/
12
12
Lines 15-20 Link Here
15
BUILD_DEPENDS=	rrdtool:${PORTSDIR}/net/rrdtool \
15
BUILD_DEPENDS=	rrdtool:${PORTSDIR}/net/rrdtool \
16
		${SITE_PERL}/CGI/SpeedyCGI.pm:${PORTSDIR}/www/p5-CGI-SpeedyCGI \
16
		${SITE_PERL}/CGI/SpeedyCGI.pm:${PORTSDIR}/www/p5-CGI-SpeedyCGI \
17
		${SITE_PERL}/BER.pm:${PORTSDIR}/net/p5-SNMP_Session \
17
		${SITE_PERL}/BER.pm:${PORTSDIR}/net/p5-SNMP_Session \
18
		${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
19
		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
20
		${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser \
18
		${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping
21
		${LOCALBASE}/sbin/fping:${PORTSDIR}/net/fping
19
22
20
USE_PERL5=	yes
23
USE_PERL5=	yes
Lines 22-28 Link Here
22
MAN1=		EchoPing.pm.1 EchoPingChargen.pm.1 EchoPingDiscard.pm.1 \
25
MAN1=		EchoPing.pm.1 EchoPingChargen.pm.1 EchoPingDiscard.pm.1 \
23
		EchoPingHttp.pm.1 EchoPingHttps.pm.1 \
26
		EchoPingHttp.pm.1 EchoPingHttps.pm.1 \
24
		EchoPingIcp.pm.1 EchoPingSmtp.pm.1 \
27
		EchoPingIcp.pm.1 EchoPingSmtp.pm.1 \
25
		FPing.pm.1 ParseConfig.pm.1 Smokeping.pm.1 \
28
		FPing.pm.1 FPing6.pm.1 ParseConfig.pm.1 Smokeping.pm.1 \
26
		base.pm.1 basefork.pm.1 basevars.pm.1 \
29
		base.pm.1 basefork.pm.1 basevars.pm.1 \
27
		smokeping.1 smokeping.cgi.1 \
30
		smokeping.1 smokeping.cgi.1 \
28
		smokeping_config.1 smokeping_install.1
31
		smokeping_config.1 smokeping_install.1
Lines 34-40 Link Here
34
DOC2=		EchoPing.pm EchoPingChargen.pm EchoPingDiscard.pm \
37
DOC2=		EchoPing.pm EchoPingChargen.pm EchoPingDiscard.pm \
35
		EchoPingHttp.pm EchoPingHttps.pm \
38
		EchoPingHttp.pm EchoPingHttps.pm \
36
		EchoPingIcp.pm EchoPingSmtp.pm \
39
		EchoPingIcp.pm EchoPingSmtp.pm \
37
		FPing.pm ParseConfig.pm Smokeping.pm \
40
		FPing.pm FPing6.pm ParseConfig.pm Smokeping.pm \
38
		base.pm basefork.pm basevars.pm smokeping.cgi \
41
		base.pm basefork.pm basevars.pm smokeping.cgi \
39
		smokeping smokeping_config smokeping_install
42
		smokeping smokeping_config smokeping_install
40
ETC1=		basepage.html config smokemail config-echoping
43
ETC1=		basepage.html config smokemail config-echoping
Lines 51-57 Link Here
51
		s|/home/oetiker/.smokeping/config|${PREFIX}/etc/smokeping/config|; \
54
		s|/home/oetiker/.smokeping/config|${PREFIX}/etc/smokeping/config|; \
52
		s|/usr/lib/sendmail|/usr/sbin/sendmail|; \
55
		s|/usr/lib/sendmail|/usr/sbin/sendmail|; \
53
		s|/usr/sepp/bin/fping|${PREFIX}/sbin/fping|; \
56
		s|/usr/sepp/bin/fping|${PREFIX}/sbin/fping|; \
54
		s|piddir  = /usr/local/smokeping/var|piddir  = ${PREFIX}/var/smokeping|; \
57
		s|dir  = /usr/local/smokeping/var|dir  = ${PREFIX}/var/smokeping|; \
55
		s|imgcache = /home/oetiker/public_html/.simg|imgcache = ${PREFIX}/smokeping/htdocs/img|; \
58
		s|imgcache = /home/oetiker/public_html/.simg|imgcache = ${PREFIX}/smokeping/htdocs/img|; \
56
		s|imgurl   = ../.simg|imgurl   = /smokeimg|; \
59
		s|imgurl   = ../.simg|imgurl   = /smokeimg|; \
57
		' \
60
		' \
Lines 64-69 Link Here
64
do-build:
67
do-build:
65
	@${RM} ${WRKSRC}/lib/BER.pm
68
	@${RM} ${WRKSRC}/lib/BER.pm
66
	@${RM} ${WRKSRC}/lib/SNMP_*.pm
69
	@${RM} ${WRKSRC}/lib/SNMP_*.pm
70
	@${RM} ${WRKSRC}/probe-report.patch
67
71
68
pre-install:
72
pre-install:
69
	PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
73
	PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
(-)smokeping/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (smokeping-1.8.tar.gz) = 0be3dccdeea9ce0180ac33c08ce55ee8
1
MD5 (smokeping-1.12.tar.gz) = 959dd5b64f067c3f6bfaf26a33f640fa
(-)smokeping/pkg-deinstall (-7 / +70 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
# $FreeBSD: ports/net/smokeping/pkg-deinstall,v 1.2 2002/04/01 13:47:18 kuriyama Exp $
3
# $FreeBSD: ports/net/smokeping/pkg-deinstall,v 1.2 2002/04/01 13:47:18 kuriyama Exp $
3
#
4
#
4
5
6
ask() {
7
    local question default answer
8
9
    question=$1
10
    default=$2
11
    if [ -z "${PACKAGE_BUILDING}" ]; then
12
	read -p "${question} [${default}]? " answer
13
    fi
14
    if [ x${answer} = x ]; then
15
	answer=${default}
16
    fi
17
    echo ${answer}
18
}
19
20
yesno() {
21
    local dflt question answer
22
23
    question=$1
24
    dflt=$2
25
    while :; do
26
	answer=$(ask "${question}" "${dflt}")
27
	case "${answer}" in
28
	[Yy]*)		return 0;;
29
	[Nn]*)		return 1;;
30
	esac
31
	echo "Please answer yes or no."
32
    done
33
}
34
35
delete_account() {
36
    local u g home
37
38
    u=$1
39
    g=$2
40
    if yesno "Do you want me to remove group \"${g}\"" y; then
41
        pw groupdel -n ${g}
42
        echo "Done."
43
    fi
44
    if yesno "Do you want me to remove user \"${u}\"" y; then
45
        eval home=~${u}
46
        pw userdel -n ${u}
47
        echo "Done."
48
        if [ -d "${home}" ]; then
49
            echo "Please remember to check if there's any unsent mail left"
50
            echo "in the home directory \"${home}\""
51
        fi
52
53
    fi
54
}
55
5
if [ -f ${PKG_PREFIX}/var/smokeping/smokeping.pid ]; then
56
if [ -f ${PKG_PREFIX}/var/smokeping/smokeping.pid ]; then
6
    if [ -x ${PKG_PREFIX}/etc/rc.d/smokeping.sh ]; then
57
    if [ -x ${PKG_PREFIX}/etc/rc.d/smokeping.sh ]; then
7
        ${PKG_PREFIX}/etc/rc.d/smokeping.sh stop > /dev/null
58
        ${PKG_PREFIX}/etc/rc.d/smokeping.sh stop > /dev/null
Lines 13-23 Link Here
13
    exit 0
64
    exit 0
14
fi
65
fi
15
66
16
if [ -d ${PKG_PREFIX}/smokeping ]; then
67
if [ ! -n "$BATCH" ]; then
17
    echo "----------------------------------------------------------------"
68
18
    echo "To delete your custom SmokePing configuration and all collected"
69
    if [ -d ${PKG_PREFIX}/etc/smokeping ]; then
19
    echo "data permanently, use 'rm -R ${PKG_PREFIX}/smokeping'"
70
	echo "You have some custom SmokePing configuration in \"${PKG_PREFIX}/etc/smokeping/\"."
20
    echo "----------------------------------------------------------------"
71
	if yesno "Would you like me to remove it" y; then
21
fi
72
	    rm -R ${PKG_PREFIX}/etc/smokeping
73
	    echo "Done."
74
	fi
75
    fi
76
77
    if [ -d ${PKG_PREFIX}/var/smokeping ]; then
78
	echo "You have some collected data in \"${PKG_PREFIX}/var/smokeping/\"."
79
	if yesno "Would you like me to remove it" y; then
80
	    rm -R ${PKG_PREFIX}/var/smokeping
81
	    echo "Done."
82
	fi
83
    fi
22
84
23
exit 0
85
    delete_account smokeping smokeping
86
fi
(-)smokeping/pkg-install (+3 lines)
Lines 1-4 Link Here
1
#! /bin/sh
1
#! /bin/sh
2
#
3
# $FreeBSD$
4
#
2
5
3
ask() {
6
ask() {
4
    local question default answer
7
    local question default answer
(-)smokeping/pkg-plist (+3 lines)
Lines 34-39 Link Here
34
share/doc/smokeping/EchoPingSmtp.pm.txt
34
share/doc/smokeping/EchoPingSmtp.pm.txt
35
share/doc/smokeping/FPing.pm.html
35
share/doc/smokeping/FPing.pm.html
36
share/doc/smokeping/FPing.pm.txt
36
share/doc/smokeping/FPing.pm.txt
37
share/doc/smokeping/FPing6.pm.html
38
share/doc/smokeping/FPing6.pm.txt
37
share/doc/smokeping/ParseConfig.pm.html
39
share/doc/smokeping/ParseConfig.pm.html
38
share/doc/smokeping/ParseConfig.pm.txt
40
share/doc/smokeping/ParseConfig.pm.txt
39
share/doc/smokeping/Smokeping.pm.html
41
share/doc/smokeping/Smokeping.pm.html
Lines 55-60 Link Here
55
smokeping/htdocs/smokeping.cgi
57
smokeping/htdocs/smokeping.cgi
56
smokeping/lib/Smokeping.pm
58
smokeping/lib/Smokeping.pm
57
smokeping/lib/probes/FPing.pm
59
smokeping/lib/probes/FPing.pm
60
smokeping/lib/probes/FPing6.pm
58
smokeping/lib/probes/base.pm
61
smokeping/lib/probes/base.pm
59
smokeping/lib/probes/EchoPing.pm
62
smokeping/lib/probes/EchoPing.pm
60
smokeping/lib/probes/EchoPingChargen.pm
63
smokeping/lib/probes/EchoPingChargen.pm

Return to bug 38833