Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  4 Aug 2004 21:03:44 +0300 (EEST)
From:      ozkan@enderunix.org
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sem@FreeBSD.org
Subject:   ports/70007: Update port: net-mgmt/netustad new release update
Message-ID:  <20040804180344.4A7C3452BE@mail.mersin.edu.tr>
Resent-Message-ID: <200408041800.i74I0ku8013163@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70007
>Category:       ports
>Synopsis:       Update port: net-mgmt/netustad new release update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 04 18:00:45 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ozkan KIRIK
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
EnderUNIX SDT @ Turkey
>Environment:
System: FreeBSD mail.mersin.edu.tr


	
>Description:
	netUstad v0.2b new release port update
	
>How-To-Repeat:
	updating port files
	
>Fix:
	rm netustad/files/netustad.sh.sample

	

--- port begins here ---
diff -ruN netustad.old/Makefile netustad/Makefile
--- netustad.old/Makefile	Wed Aug  4 20:34:43 2004
+++ netustad/Makefile	Wed Aug  4 19:59:19 2004
@@ -1,23 +1,42 @@
 # New ports collection makefile for:   netustad
-# Date created:                 4 July 2004
-# Whom:                         ozkan@enderunix.org
+# Date created:                 03 August 2004
+# Whom:                         Ozkan KIRIK <ozkan@enderunix.org>
 #
-# $FreeBSD: ports/net-mgmt/netustad/Makefile,v 1.1 2004/07/22 05:48:22 sem Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	netustad
-PORTVERSION=	0.1.1
+PORTVERSION=	0.2b
 CATEGORIES=	net-mgmt security
 MASTER_SITES=	http://www.enderunix.org/netustad/
+DISTNAME=	${PORTNAME}-0.2-BETA
 
 MAINTAINER=	ozkan@enderunix.org
-COMMENT=	A web based admin tool that manages network services
+COMMENT=	A Web based admin tool that manages network services
 
 MAN8=		netustad.8 netustadpasswd.8
 MAN5=		netustad.conf.5
 
+USE_RC_SUBR=	yes
+SED_SCRIPT+=    -e '{ s,%%PREFIX%%,${PREFIX},g; }'
+
+post-build:
+	@${SED} ${SED_SCRIPT} ${FILESDIR}/netustad.sh >${WRKDIR}/netustad.sh
+	@${SED} ${SED_SCRIPT} ${FILESDIR}/netustadctl >${WRKDIR}/netustadctl
+
 post-install:
-	@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g'
-	@${INSTALL_SCRIPT} ${FILESDIR}/netustad.sh.sample ${PREFIX}/etc/rc.d/
+	@${CAT} ${PKGMESSAGE} | ${SED} ${SED_SCRIPT}
+	${INSTALL_SCRIPT} ${WRKDIR}/netustad.sh ${PREFIX}/etc/rc.d/
+	${INSTALL_SCRIPT} ${WRKDIR}/netustadctl ${PREFIX}/sbin
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/CHANGES	${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/COPYING	${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/FAQ		${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/GPL-License	${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/INSTALL	${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/THANKS	${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/TODO		${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>
diff -ruN netustad.old/distinfo netustad/distinfo
--- netustad.old/distinfo	Wed Aug  4 20:34:43 2004
+++ netustad/distinfo	Wed Aug  4 01:40:32 2004
@@ -1,2 +1,2 @@
-MD5 (netustad-0.1.1.tar.gz) = 5446b002d68367239867d4e29f039d81
-SIZE (netustad-0.1.1.tar.gz) = 39334
+MD5 (netustad-0.2-BETA.tar.gz) = 7d17d20783ab2a9d09df1f7d5daae7f8
+SIZE (netustad-0.2-BETA.tar.gz) = 54906
diff -ruN netustad.old/files/netustad.sh netustad/files/netustad.sh
--- netustad.old/files/netustad.sh	Thu Jan  1 02:00:00 1970
+++ netustad/files/netustad.sh	Wed Aug  4 20:00:41 2004
@@ -0,0 +1,56 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: netustad
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD
+#
+# Note:
+# If you are running an rcNG-System (i.e. FreeBSD 5 and later or after
+# having installed the rc_subr-port on an earlier system) you must set
+# "netustad_enable=YES" in either /etc/rc.conf, /etc/rc.conf.local or
+#
+# Please see netustad(8), rc.conf(5) and rc(8) for further details.
+
+unset rcNG
+name="netustad"
+command=%%PREFIX%%/sbin/netustad
+extra_commands=reload
+reload_cmd="killall -HUP ${name}"
+stop_cmd="killall ${name}"
+
+if [ -f /etc/rc.subr ]; then
+	. /etc/rc.subr && rcNG=yes
+else
+	if [ -f %%PREFIX%%/etc/rc.subr ]; then
+		. %%PREFIX%%/etc/rc.subr && rcNG=yes
+	fi
+fi
+
+if [ "${rcNG}" ]; then
+	rcvar=`set_rcvar`
+	load_rc_config ${name}
+	run_rc_command "$1"
+else
+	case $1 in
+	start)
+		if [ -x "${command}" ]; then
+			echo -n ' netustad '
+			${command}
+		fi
+		;;
+	stop)
+		if [ -x "${command}" ]; then
+			echo -n ' netustad '
+			${stop_cmd}
+		fi
+		;;
+		*)
+		echo "usage: `basename $0` {start|stop}" >&2
+		exit 64
+		;;
+	esac
+	exit 0
+fi
diff -ruN netustad.old/files/netustad.sh.sample netustad/files/netustad.sh.sample
--- netustad.old/files/netustad.sh.sample	Wed Aug  4 20:34:43 2004
+++ netustad/files/netustad.sh.sample	Thu Jan  1 02:00:00 1970
@@ -1,56 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: ports/net-mgmt/netustad/files/netustad.sh.sample,v 1.1 2004/07/22 05:48:22 sem Exp $
-#
-# PROVIDE: netustad
-# REQUIRE: NETWORKING SERVERS
-# BEFORE: DAEMON
-# KEYWORD: FreeBSD
-#
-# Note:
-# If you are running an rcNG-System (i.e. FreeBSD 5 and later or after
-# having installed the rc_subr-port on an earlier system) you must set
-# "netustad_enable=YES" in either /etc/rc.conf, /etc/rc.conf.local or
-#
-# Please see netustad(8), rc.conf(5) and rc(8) for further details.
-
-unset rcNG
-name="netustad"
-command=/usr/local/sbin/netustad
-extra_commands=reload
-reload_cmd="killall -HUP ${name}"
-stop_cmd="killall ${name}"
-
-if [ -f /etc/rc.subr ]; then
-	. /etc/rc.subr && rcNG=yes
-else
-	if [ -f /usr/local/etc/rc.subr ]; then
-		. /usr/local/etc/rc.subr && rcNG=yes
-	fi
-fi
-
-if [ "${rcNG}" ]; then
-	rcvar=`set_rcvar`
-	load_rc_config ${name}
-	run_rc_command "$1"
-else
-	case $1 in
-	start)
-		if [ -x "${command}" ]; then
-			echo -n ' netustad '
-			${command}
-		fi
-		;;
-	stop)
-		if [ -x "${command}" ]; then
-			echo -n ' netustad '
-			${stop_cmd}
-		fi
-		;;
-		*)
-		echo "usage: `basename $0` {start|stop}" >&2
-		exit 64
-		;;
-	esac
-	exit 0
-fi
diff -ruN netustad.old/files/netustadctl netustad/files/netustadctl
--- netustad.old/files/netustadctl	Thu Jan  1 02:00:00 1970
+++ netustad/files/netustadctl	Tue Aug  3 22:21:59 2004
@@ -0,0 +1,30 @@
+#!/bin/csh
+######################################
+# netustadctl: netUstad ConTroLler #
+######################################
+
+set prefix="%%PREFIX%%"
+
+switch ($1)
+	case start:
+		$prefix/sbin/netustad
+		breaksw
+	case stop:
+		killall netustad
+		breaksw
+	case reload:
+		killall -HUP netustad
+		echo ""
+		echo "netUstad configuration reloaded"
+		echo ""
+		breaksw
+	case restart:
+		killall netustad
+		$prefix/sbin/netustad
+		breaksw
+	default:
+		echo ""
+		echo "usage: netustadctl start|stop|restart|reload"
+		echo ""
+		exit 64
+endsw
diff -ruN netustad.old/pkg-descr netustad/pkg-descr
--- netustad.old/pkg-descr	Wed Aug  4 20:34:43 2004
+++ netustad/pkg-descr	Tue Aug  3 21:16:16 2004
@@ -15,6 +15,8 @@
 Project Page:
 WWW: http://www.enderunix.org/netustad
 
-- Ozkan KIRIK
-ozkan@enderunix.org
-EnderUNIX SDT @ Turkey
+Author: 
+      Ozkan KIRIK
+  ozkan@enderunix.org
+ EnderUNIX SDT @ Turkey
+http://www.enderunix.org/
diff -ruN netustad.old/pkg-plist netustad/pkg-plist
--- netustad.old/pkg-plist	Wed Aug  4 20:34:43 2004
+++ netustad/pkg-plist	Tue Aug  3 22:16:19 2004
@@ -1,32 +1,61 @@
 sbin/netustad
 sbin/netustadctl
 sbin/netustadpasswd
-etc/rc.d/netustad.sh.sample
-@unexec if [ -f %D/etc/rc.d/netustad.sh ]; then rm -f %D/etc/rc.d/netustad.sh; fi
+etc/rc.d/netustad.sh
 @unexec if cmp -s %D/etc/netustad.conf %D/etc/netustad.conf-dist; then rm -f %D/etc/netustad.conf; fi
 etc/netustad.conf-dist
 @exec [ -f %B/netustad.conf ] || cp %B/%f %B/netustad.conf
 %%DATADIR%%/script/English
-%%DATADIR%%/script/Turkce
 %%DATADIR%%/script/action1.inc
 %%DATADIR%%/script/action2.inc
 %%DATADIR%%/script/addform
 %%DATADIR%%/script/addrule.inc
 %%DATADIR%%/script/authform
-%%DATADIR%%/script/bg.png
-%%DATADIR%%/script/delete.jpg
 %%DATADIR%%/script/edit-parse
 %%DATADIR%%/script/editform
 %%DATADIR%%/script/editrule.inc
+%%DATADIR%%/script/footer
+%%DATADIR%%/script/header
 %%DATADIR%%/script/intf-parse
-%%DATADIR%%/script/loginform.inc
+%%DATADIR%%/script/loadindex
 %%DATADIR%%/script/maketable
 %%DATADIR%%/script/netustad.css
 %%DATADIR%%/script/proto.inc
 %%DATADIR%%/script/ruleoption1.inc
 %%DATADIR%%/script/ruleoption2.inc
+%%DATADIR%%/script/service-parse
 %%DATADIR%%/script/showrule
 %%DATADIR%%/script/static-parse
+%%DATADIR%%/script/images/action_allow.png
+%%DATADIR%%/script/images/action_checkstate.png
+%%DATADIR%%/script/images/action_count.png
+%%DATADIR%%/script/images/action_deny.png
+%%DATADIR%%/script/images/action_divert.png
+%%DATADIR%%/script/images/action_forward.png
+%%DATADIR%%/script/images/action_pipequeue.png
+%%DATADIR%%/script/images/action_skipto.png
+%%DATADIR%%/script/images/action_tee.png
+%%DATADIR%%/script/images/action_unreach.png
+%%DATADIR%%/script/images/banner-alt.png
+%%DATADIR%%/script/images/banner.png
+%%DATADIR%%/script/images/bg.png
+%%DATADIR%%/script/images/btn_bg.png
+%%DATADIR%%/script/images/buton_0.png
+%%DATADIR%%/script/images/buton_1.png
+%%DATADIR%%/script/images/buton_2.png
+%%DATADIR%%/script/images/buton_3.png
+%%DATADIR%%/script/images/buton_4.png
+%%DATADIR%%/script/images/buton_5.png
+%%DATADIR%%/script/images/buton_6.png
+%%DATADIR%%/script/images/buton_7.png
+%%DATADIR%%/script/images/editor.png
+%%DATADIR%%/script/images/editor_static.png
+%%DATADIR%%/script/images/eraser.png
+%%DATADIR%%/script/images/eraser_static.png
+%%DATADIR%%/script/images/menu_addrule.png
+%%DATADIR%%/script/images/menu_login.png
+%%DATADIR%%/script/images/menu_logout.png
+%%DATADIR%%/script/images/menu_rulelist.png
 %%PORTDOCS%%%%DOCSDIR%%/CHANGES
 %%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/FAQ
@@ -34,6 +63,7 @@
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL
 %%PORTDOCS%%%%DOCSDIR%%/THANKS
 %%PORTDOCS%%%%DOCSDIR%%/TODO
+@dirrm %%DATADIR%%/script/images
 @dirrm %%DATADIR%%/script
 @dirrm %%DATADIR%%
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
--- port ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040804180344.4A7C3452BE>