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

(-)netustad/Makefile (-18 / +23 lines)
Lines 1-42 Link Here
1
# New ports collection makefile for:   netustad
1
# New ports collection makefile for:   netustad
2
# Date created:                 4 July 2004
2
# Date created:                 9 January 2005
3
# Whom:                         Ozkan KIRIK <ozkan@enderunix.org>
3
# Whom:                         Ozkan KIRIK <ozkan@enderunix.org>
4
#
4
#
5
# $FreeBSD: ports/net-mgmt/netustad/Makefile,v 1.3 2004/08/05 07:24:09 sem Exp $
5
# $FreeBSD$
6
#
6
#
7
7
8
PORTNAME=	netustad
8
PORTNAME=	netustad
9
PORTVERSION=	0.2b
9
PORTVERSION=	0.3.0
10
CATEGORIES=	net-mgmt security
10
CATEGORIES=	net-mgmt security
11
MASTER_SITES=	http://www.enderunix.org/netustad/
11
MASTER_SITES=	http://www.enderunix.org/netustad/
12
DISTNAME=	${PORTNAME}-0.2-BETA
13
12
14
MAINTAINER=	ozkan@enderunix.org
13
MAINTAINER=	ozkan@enderunix.org
15
COMMENT=	A Web based admin tool that manages network services
14
COMMENT=	A Web based admin tool that manages network services
16
15
17
MAN8=		netustad.8 netustadpasswd.8
16
#MAN8=		netustad.8 netustadpasswd.8
18
MAN5=		netustad.conf.5
17
#MAN5=		netustad.conf.5
19
18
20
USE_RC_SUBR=	yes
19
USE_RC_SUBR=	yes
20
USE_GETTEXT=	yes
21
GNU_CONFIGURE=	yes
22
OPTIONS=	SSL "Use netUstad with SSL support" on
23
24
.if defined(WITH_SSL)
25
USE_OPENSSL=	yes
26
.else
27
CONFIGURE_ARGS+=	--without-ssl
28
.endif
29
30
.if defined(WITHOUT_NLS)
31
CONFIGURE_ARGS+=	--without-nls
32
.endif
33
34
.if defined(NOPORTDOCS)
35
#make portlint happy :)
36
.endif
37
21
SED_SCRIPT+=	-e '{ s,%%PREFIX%%,${PREFIX},g; }'
38
SED_SCRIPT+=	-e '{ s,%%PREFIX%%,${PREFIX},g; }'
22
39
23
post-build:
40
post-build:
24
	@${SED} ${SED_SCRIPT} ${FILESDIR}/netustad.sh >${WRKDIR}/netustad.sh
41
	@${SED} ${SED_SCRIPT} ${FILESDIR}/netustad.sh >${WRKDIR}/netustad.sh
25
	@${SED} ${SED_SCRIPT} ${FILESDIR}/netustadctl >${WRKDIR}/netustadctl
26
42
27
post-install:
43
post-install:
28
	@${CAT} ${PKGMESSAGE} | ${SED} ${SED_SCRIPT}
44
	@${CAT} ${PKGMESSAGE} | ${SED} ${SED_SCRIPT}
29
	${INSTALL_SCRIPT} ${WRKDIR}/netustad.sh ${PREFIX}/etc/rc.d/
45
	${INSTALL_SCRIPT} ${WRKDIR}/netustad.sh ${PREFIX}/etc/rc.d/
30
	${INSTALL_SCRIPT} ${WRKDIR}/netustadctl ${PREFIX}/sbin
31
.if !defined(NOPORTDOCS)
32
	${MKDIR} ${DOCSDIR}
33
	${INSTALL_DATA} ${WRKSRC}/CHANGES	${DOCSDIR}
34
	${INSTALL_DATA} ${WRKSRC}/COPYING	${DOCSDIR}
35
	${INSTALL_DATA} ${WRKSRC}/FAQ		${DOCSDIR}
36
	${INSTALL_DATA} ${WRKSRC}/GPL-License	${DOCSDIR}
37
	${INSTALL_DATA} ${WRKSRC}/INSTALL	${DOCSDIR}
38
	${INSTALL_DATA} ${WRKSRC}/THANKS	${DOCSDIR}
39
	${INSTALL_DATA} ${WRKSRC}/TODO		${DOCSDIR}
40
.endif
41
46
42
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)netustad/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (netustad-0.2-BETA.tar.gz) = 7d17d20783ab2a9d09df1f7d5daae7f8
1
MD5 (netustad-0.3.0.tar.gz) = 4f5f0087c10b7571398491fd146faaaf
2
SIZE (netustad-0.2-BETA.tar.gz) = 54906
2
SIZE (netustad-0.3.0.tar.gz) = 282356
(-)netustad/files/netustad.sh (-2 lines)
Lines 17-24 Link Here
17
unset rcNG
17
unset rcNG
18
name="netustad"
18
name="netustad"
19
command=%%PREFIX%%/sbin/netustad
19
command=%%PREFIX%%/sbin/netustad
20
extra_commands=reload
21
reload_cmd="killall -HUP ${name}"
22
stop_cmd="killall ${name}"
20
stop_cmd="killall ${name}"
23
21
24
if [ -f /etc/rc.subr ]; then
22
if [ -f /etc/rc.subr ]; then
(-)netustad/files/netustadctl (-30 lines)
Lines 1-30 Link Here
1
#!/bin/csh
2
######################################
3
# netustadctl: netUstad ConTroLler #
4
######################################
5
6
set prefix="%%PREFIX%%"
7
8
switch ($1)
9
	case start:
10
		$prefix/sbin/netustad
11
		breaksw
12
	case stop:
13
		killall netustad
14
		breaksw
15
	case reload:
16
		killall -HUP netustad
17
		echo ""
18
		echo "netUstad configuration reloaded"
19
		echo ""
20
		breaksw
21
	case restart:
22
		killall netustad
23
		$prefix/sbin/netustad
24
		breaksw
25
	default:
26
		echo ""
27
		echo "usage: netustadctl start|stop|restart|reload"
28
		echo ""
29
		exit 64
30
endsw
(-)netustad/pkg-descr (-4 / +3 lines)
Lines 6-16 Link Here
6
6
7
It has been coded in C language and includes its own HTTP server.
7
It has been coded in C language and includes its own HTTP server.
8
The newly anounced version provides a web interface for
8
The newly anounced version provides a web interface for
9
system administrators to add/delete/update IPFW rulesets.
9
system administrators to add/delete/update FreeBSD IPFW and Linux IpTables 
10
rulesets, manage routing table and network interfaces.
10
11
11
You can manage your IPFW firewall via a TCP/IP connected remote PC, easily.
12
You can manage your Firewall via a TCP/IP connected remote PC, easily.
12
Development version icludes modules to manage whole
13
network services (routing tables, network interfaces)
14
13
15
Project Page:
14
Project Page:
16
WWW: http://www.enderunix.org/netustad
15
WWW: http://www.enderunix.org/netustad
(-)netustad/pkg-message (-7 / +9 lines)
Lines 1-7 Link Here
1
*************************************************
1
*****************************************************************
2
* You must run this program as root		*
2
* You must run this program as root				*
3
* Program path       : %%PREFIX%%/sbin/netustad *
3
* Program path       : %%PREFIX%%/sbin/netustad			*
4
* Your AdminUser     : admin			*
4
* Your AdminUser     : admin					*
5
* Your AdminPassword : admin		       	*
5
* Your AdminPassword : admin					*
6
* Don't forget to change your password!		*
6
* Config file path   : %%PREFIX%%/etc/netustad/netustad.conf	*
7
*************************************************
7
* Check lc_all variable in config file.				*
8
* Don't forget to change your password!				*
9
*****************************************************************
(-)netustad/pkg-plist (-20 / +56 lines)
Lines 1-31 Link Here
1
bin/netustadctl
2
bin/netustadpasswd
1
sbin/netustad
3
sbin/netustad
2
sbin/netustadctl
3
sbin/netustadpasswd
4
etc/rc.d/netustad.sh
4
etc/rc.d/netustad.sh
5
@unexec if cmp -s %D/etc/netustad.conf %D/etc/netustad.conf-dist; then rm -f %D/etc/netustad.conf; fi
5
@unexec if cmp -s %D/etc/netustad/netustad.conf %D/etc/netustad/netustad.conf-dist; then rm -f %D/etc/netustad/netustad.conf; fi
6
etc/netustad.conf-dist
6
etc/netustad/netustad.conf-dist
7
@exec [ -f %B/netustad.conf ] || cp %B/%f %B/netustad.conf
7
@exec [ -f %B/netustad/netustad.conf ] || cp %B/%f %B/netustad/netustad.conf
8
%%DATADIR%%/script/English
8
/include/netustad/acceptrequest.h
9
/include/netustad/addnewrule.h
10
/include/netustad/auth.h
11
/include/netustad/common.h
12
/include/netustad/config.h
13
/include/netustad/deleterule.h
14
/include/netustad/editrule.h
15
/include/netustad/loadconfig.h
16
/include/netustad/mimetype.h
17
/include/netustad/netustad.h
18
/include/netustad/execcgi.h
19
/include/netustad/network.h
20
/include/netustad/snprintf.h
9
%%DATADIR%%/script/action1.inc
21
%%DATADIR%%/script/action1.inc
10
%%DATADIR%%/script/action2.inc
22
%%DATADIR%%/script/action2.inc
11
%%DATADIR%%/script/addform
12
%%DATADIR%%/script/addrule.inc
13
%%DATADIR%%/script/authform
14
%%DATADIR%%/script/edit-parse
23
%%DATADIR%%/script/edit-parse
15
%%DATADIR%%/script/editform
24
%%DATADIR%%/script/if-edit
16
%%DATADIR%%/script/editrule.inc
25
%%DATADIR%%/script/if-parse
17
%%DATADIR%%/script/footer
18
%%DATADIR%%/script/header
19
%%DATADIR%%/script/intf-parse
26
%%DATADIR%%/script/intf-parse
20
%%DATADIR%%/script/loadindex
27
%%DATADIR%%/script/nat-edit
21
%%DATADIR%%/script/maketable
28
%%DATADIR%%/script/nat-parse
22
%%DATADIR%%/script/netustad.css
29
%%DATADIR%%/script/netustad.css
23
%%DATADIR%%/script/proto.inc
30
%%DATADIR%%/script/proto.inc
31
%%DATADIR%%/script/rt-edit
32
%%DATADIR%%/script/rt-parse
24
%%DATADIR%%/script/ruleoption1.inc
33
%%DATADIR%%/script/ruleoption1.inc
25
%%DATADIR%%/script/ruleoption2.inc
34
%%DATADIR%%/script/ruleoption2.inc
26
%%DATADIR%%/script/service-parse
35
%%DATADIR%%/script/service-parse
27
%%DATADIR%%/script/showrule
36
%%DATADIR%%/script/stats-parse
28
%%DATADIR%%/script/static-parse
37
%%DATADIR%%/script/static-parse
38
%%DATADIR%%/script/addform
39
%%DATADIR%%/script/authform
40
%%DATADIR%%/script/editform
41
%%DATADIR%%/script/footer
42
%%DATADIR%%/script/header
43
%%DATADIR%%/script/if_edit
44
%%DATADIR%%/script/if_table
45
%%DATADIR%%/script/loadindex
46
%%DATADIR%%/script/maketable
47
%%DATADIR%%/script/nat_add
48
%%DATADIR%%/script/nat_del
49
%%DATADIR%%/script/nat_edit
50
%%DATADIR%%/script/rt_add
51
%%DATADIR%%/script/rt_del
52
%%DATADIR%%/script/rt_edit
53
%%DATADIR%%/script/rt_table
54
%%DATADIR%%/script/shownat
55
%%DATADIR%%/script/showrule
56
%%DATADIR%%/script/stats
57
%%DATADIR%%/script/addrule.content
58
%%DATADIR%%/script/editrule.content
59
%%DATADIR%%/script/writeconfig
29
%%DATADIR%%/script/images/action_allow.png
60
%%DATADIR%%/script/images/action_allow.png
30
%%DATADIR%%/script/images/action_checkstate.png
61
%%DATADIR%%/script/images/action_checkstate.png
31
%%DATADIR%%/script/images/action_count.png
62
%%DATADIR%%/script/images/action_count.png
Lines 56-69 Link Here
56
%%DATADIR%%/script/images/menu_login.png
87
%%DATADIR%%/script/images/menu_login.png
57
%%DATADIR%%/script/images/menu_logout.png
88
%%DATADIR%%/script/images/menu_logout.png
58
%%DATADIR%%/script/images/menu_rulelist.png
89
%%DATADIR%%/script/images/menu_rulelist.png
59
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
90
%%DATADIR%%/cert/netustad.crt
91
%%DATADIR%%/cert/netustad.csr
92
%%DATADIR%%/cert/netustad.key
93
%%PORTDOCS%%%%DOCSDIR%%/README
60
%%PORTDOCS%%%%DOCSDIR%%/COPYING
94
%%PORTDOCS%%%%DOCSDIR%%/COPYING
61
%%PORTDOCS%%%%DOCSDIR%%/FAQ
95
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
62
%%PORTDOCS%%%%DOCSDIR%%/GPL-License
96
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
63
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
97
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
64
%%PORTDOCS%%%%DOCSDIR%%/THANKS
98
%%PORTDOCS%%%%DOCSDIR%%/NEWS
65
%%PORTDOCS%%%%DOCSDIR%%/TODO
99
%%PORTDOCS%%%%DOCSDIR%%/TODO
100
%%PORTDOCS%%%%DOCSDIR%%/ABOUT-NLS
66
@dirrm %%DATADIR%%/script/images
101
@dirrm %%DATADIR%%/script/images
67
@dirrm %%DATADIR%%/script
102
@dirrm %%DATADIR%%/script
103
@dirrm %%DATADIR%%/cert
68
@dirrm %%DATADIR%%
104
@dirrm %%DATADIR%%
69
%%PORTDOCS%%@dirrm %%DOCSDIR%%
105
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 75987