rsync: Add rsyncd.conf
authorRaymond Danks <raymond@edanks.com>
Tue, 18 Apr 2006 01:43:08 +0000 (01:43 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 18 Apr 2006 01:43:08 +0000 (01:43 +0000)
packages/rsync/files/.mtn2git_empty [new file with mode: 0644]
packages/rsync/files/rsyncd.conf [new file with mode: 0644]
packages/rsync/rsync_2.6.7.bb

diff --git a/packages/rsync/files/.mtn2git_empty b/packages/rsync/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/rsync/files/rsyncd.conf b/packages/rsync/files/rsyncd.conf
new file mode 100644 (file)
index 0000000..845f5b3
--- /dev/null
@@ -0,0 +1,15 @@
+# /etc/rsyncd.conf
+
+# Minimal configuration file for rsync daemon
+# See rsync(1) and rsyncd.conf(5) man pages for help
+
+# This file is required by rsync --daemon
+pid file = /var/run/rsyncd.pid
+use chroot = yes
+read only = yes
+
+# Simple example for enabling your own local rsync server
+#[everything]
+#      path = /
+#      comment = Everything except /etc exposed
+#      exclude = /etc
index b5f8a65..421dc76 100644 (file)
@@ -4,8 +4,14 @@ SECTION = "console/network"
 PRIORITY = "optional"
 PR = "r1"
 
-SRC_URI = "http://rsync.samba.org/ftp/rsync/rsync-${PV}.tar.gz"
+SRC_URI = "http://rsync.samba.org/ftp/rsync/rsync-${PV}.tar.gz \
+file://rsyncd.conf"
 
 inherit autotools
 
+do_install_append() {
+       install -d ${D}/etc
+       install -m 0644 ${WORKDIR}/rsyncd.conf ${D}/etc
+}
+               
 EXTRA_OEMAKE='STRIP=""'