[csw-devel] SF.net SVN: gar:[9965] csw/mgar/pkg
bonivart at users.sourceforge.net
bonivart at users.sourceforge.net
Tue May 25 14:44:22 CEST 2010
Revision: 9965
http://gar.svn.sourceforge.net/gar/?rev=9965&view=rev
Author: bonivart
Date: 2010-05-25 12:44:21 +0000 (Tue, 25 May 2010)
Log Message:
-----------
policydweight: initial commit
Added Paths:
-----------
csw/mgar/pkg/policyd-weight/
csw/mgar/pkg/policyd-weight/branches/
csw/mgar/pkg/policyd-weight/tags/
csw/mgar/pkg/policyd-weight/trunk/
csw/mgar/pkg/policyd-weight/trunk/Makefile
csw/mgar/pkg/policyd-weight/trunk/checksums
csw/mgar/pkg/policyd-weight/trunk/files/
csw/mgar/pkg/policyd-weight/trunk/files/cswusergroup
csw/mgar/pkg/policyd-weight/trunk/files/policyd-weight.init
Property changes on: csw/mgar/pkg/policyd-weight/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
Added: svn:externals
+ gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2
Added: csw/mgar/pkg/policyd-weight/trunk/Makefile
===================================================================
--- csw/mgar/pkg/policyd-weight/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/policyd-weight/trunk/Makefile 2010-05-25 12:44:21 UTC (rev 9965)
@@ -0,0 +1,55 @@
+GARNAME = policyd-weight
+GARVERSION = 0.1.14
+CATEGORIES = net
+
+DESCRIPTION = Policy daemon for the Postfix MTA (2.1 and later)
+define BLURB
+ Policy daemon for the Postfix MTA (2.1 and later) intended to eliminate
+ forged envelope senders and HELOs (i.e. in bogus mails)
+endef
+
+MASTER_SITES = http://www.policyd-weight.org/releases/
+DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+
+ARCHALL = 1
+
+CATALOGNAME = policydweight
+
+RUNTIME_DEP_PKGS = CSWperl CSWpmnetdns
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS =
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+INITSMF = /opt/csw/etc/init.d/csw$(GARNAME)
+USERGROUP = /etc/opt/csw/pkg/CSW$(GARNAME)/cswusergroup
+SAMPLECONF = /etc/opt/csw/postfix//policyd-weight.conf
+
+CHECKPKG_OVERRIDES += surplus-dependency|CSWperl
+CHECKPKG_OVERRIDES += surplus-dependency|CSWpmnetdns
+
+include gar/category.mk
+
+install-custom:
+ @echo " ==> Installing $(GARNAME) (custom)"
+ @ginstall -m 755 -d $(DESTDIR)/opt/csw/etc/init.d
+ @ginstall -m 755 $(FILEDIR)/$(GARNAME).init $(DESTDIR)/opt/csw/etc/init.d/csw$(GARNAME)
+ @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/postfix
+ @ginstall -m 644 $(WORKSRC)/policyd-weight.conf.sample $(DESTDIR)/etc/opt/csw/postfix/policyd-weight.conf
+ @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/pkg/CSW$(GARNAME)
+ @ginstall -m 444 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSW$(GARNAME)/cswusergroup
+ @ginstall -m 755 -d $(DESTDIR)$(sbindir)
+ @ginstall -m 755 $(WORKSRC)/$(GARNAME) $(DESTDIR)$(sbindir)
+ @ginstall -m 755 -d $(DESTDIR)$(docdir)/$(GARNAME)
+ @ginstall -m 444 $(WORKSRC)/changes.txt $(DESTDIR)$(docdir)/$(GARNAME)
+ @ginstall -m 444 $(WORKSRC)/documentation.txt $(DESTDIR)$(docdir)/$(GARNAME)
+ @ginstall -m 755 $(WORKSRC)/todo.txt $(DESTDIR)$(docdir)/$(GARNAME)
+ @ginstall -m 755 -d $(DESTDIR)$(mandir)/man5
+ @ginstall -m 755 $(WORKSRC)/man/man5/policyd-weight.conf.5 $(DESTDIR)$(mandir)/man5
+ @ginstall -m 755 -d $(DESTDIR)$(mandir)/man8
+ @ginstall -m 755 $(WORKSRC)/man/man8/policyd-weight.8 $(DESTDIR)$(mandir)/man8
+ @$(MAKECOOKIE)
Added: csw/mgar/pkg/policyd-weight/trunk/checksums
===================================================================
--- csw/mgar/pkg/policyd-weight/trunk/checksums (rev 0)
+++ csw/mgar/pkg/policyd-weight/trunk/checksums 2010-05-25 12:44:21 UTC (rev 9965)
@@ -0,0 +1 @@
+fb4829a57c8b805fe981ee949a145042 policyd-weight-0.1.14.tar.gz
Added: csw/mgar/pkg/policyd-weight/trunk/files/cswusergroup
===================================================================
--- csw/mgar/pkg/policyd-weight/trunk/files/cswusergroup (rev 0)
+++ csw/mgar/pkg/policyd-weight/trunk/files/cswusergroup 2010-05-25 12:44:21 UTC (rev 9965)
@@ -0,0 +1 @@
+polw:polw:CSW policyd-weight:/var/opt/csw/policyd-weight:/bin/false:::NP
Added: csw/mgar/pkg/policyd-weight/trunk/files/policyd-weight.init
===================================================================
--- csw/mgar/pkg/policyd-weight/trunk/files/policyd-weight.init (rev 0)
+++ csw/mgar/pkg/policyd-weight/trunk/files/policyd-weight.init 2010-05-25 12:44:21 UTC (rev 9965)
@@ -0,0 +1,52 @@
+#!/sbin/sh
+
+#RC_KLEV 0,1,2,S
+#RC_SLEV 3
+
+# rc-script for CSWpolicyd-weight
+# Peter Bonivart, 2010-05-25
+
+# Source SMF includes
+[ -r /lib/svc/share/smf_include.sh ] && . /lib/svc/share/smf_include.sh
+
+# Source config file
+[ -r /etc/opt/csw/postfix/policyd-weight.conf ] && . /etc/opt/csw/postfix/policyd-weight.conf
+
+SERVICE=policyd-weight
+PATH=$PATH:/usr/bin:/opt/csw/bin
+
+ZONE= # used for initialization, do not change
+
+case "$1" in
+ start)
+ echo "Starting $SERVICE ..."
+ /opt/csw/sbin/policyd-weight -f /etc/opt/csw/postfix/policyd-weight.conf
+ ;;
+ stop)
+ echo "Stopping $SERVICE ..."
+ if [ -x /usr/bin/zonename ]; then
+ if [ "`/usr/bin/zonename`" = "global" ]; then
+ ZONE="-z global"
+ fi
+ fi
+ pkill $ZONE -x $SERVICE
+ ;;
+ restart)
+ echo "Restarting $SERVICE ... "
+ $0 stop
+ echo "Waiting for $SERVICE to stop: \c"
+ while ( pgrep $SERVICE > /dev/null )
+ do
+ echo ".\c"
+ sleep 1
+ done
+ echo
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "Usage: `basename $0` { start | stop | restart}"
+ exit 1
+esac
+
+exit 0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list