[csw-devel] SF.net SVN: gar:[15788] csw/mgar/pkg/rsync/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Sep 28 11:34:40 CEST 2011


Revision: 15788
          http://gar.svn.sourceforge.net/gar/?rev=15788&view=rev
Author:   dmichelsen
Date:     2011-09-28 09:34:40 +0000 (Wed, 28 Sep 2011)
Log Message:
-----------
rsync: Add RC-script

Modified Paths:
--------------
    csw/mgar/pkg/rsync/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/rsync/trunk/files/cswrsyncd

Modified: csw/mgar/pkg/rsync/trunk/Makefile
===================================================================
--- csw/mgar/pkg/rsync/trunk/Makefile	2011-09-28 09:11:44 UTC (rev 15787)
+++ csw/mgar/pkg/rsync/trunk/Makefile	2011-09-28 09:34:40 UTC (rev 15788)
@@ -19,11 +19,14 @@
 
 MASTER_SITES = http://samba.anu.edu.au/ftp/rsync/
 DISTFILES = $(DISTNAME).tar.gz
+DISTFILES += cswrsyncd
 
 VENDOR_URL = http://rsync.samba.org/
 
-RUNTIME_DEP_PKGS_CSWrsync  = CSWiconv
+PACKAGES += CSWrsync
+SPKG_DESC_CSWrsync = Utility which provides fast incremental file transfer
 RUNTIME_DEP_PKGS_CSWrsync += CSWlibpopt
+RUNTIME_DEP_PKGS_CSWrsync += CSWlibiconv2
 
 # The location of rsyncd.conf to OpenCSW standard has been done in 3.0.8
 MIGRATE_FILES = rsyncd.conf
@@ -32,6 +35,8 @@
 CONFIGURE_ARGS += $(DIRPATHS)
 CONFIGURE_ARGS += --with-rsyncd-conf=$(sysconfdir)/rsyncd.conf
 
+INITSMF += /etc/opt/csw/init.d/cswrsyncd
+
 include gar/category.mk
 
 post-install-modulated:
@@ -42,3 +47,5 @@
 		-e 's,/usr/local,$(prefix),g;' \
 		-e 's,/etc/rsyncd.conf,$(sysconfdir)/rsyncd.conf,g;' \
 		$(DESTDIR)$(mandir)/man1/rsync.1
+	ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+	ginstall -m 0755 $(WORKDIR)/cswrsyncd $(DESTDIR)/etc/opt/csw/init.d/cswrsyncd

Added: csw/mgar/pkg/rsync/trunk/files/cswrsyncd
===================================================================
--- csw/mgar/pkg/rsync/trunk/files/cswrsyncd	                        (rev 0)
+++ csw/mgar/pkg/rsync/trunk/files/cswrsyncd	2011-09-28 09:34:40 UTC (rev 15788)
@@ -0,0 +1,23 @@
+#!/sbin/sh
+
+CONF_FILE=/etc/opt/csw/rsyncd.conf
+
+if [ ! -f ${CONF_FILE} ]; then
+  exit 0
+fi
+
+cmd="$1"
+
+case "$cmd" in
+  start)
+    /opt/csw/bin/rsync --daemon -v
+    ;;
+  stop)
+    /usr/bin/pkill -x -u 0 rsync
+    ;;
+  *)
+    echo "Usage: $0 {start|stop}"
+    exit 1
+    ;;
+esac
+

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