summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2007-12-17 17:26:36 +0000
committerWolfram Schlich <wschlich@gentoo.org>2007-12-17 17:26:36 +0000
commit22aa8c86054fca88ab1dc09b6a342d28949699e5 (patch)
treed5d3dcdc474dcc8362ed066192ac1b3a6add945d /sys-fs/owfs
parentia64 stable wrt #202443 (diff)
downloadhistorical-22aa8c86054fca88ab1dc09b6a342d28949699e5.tar.gz
historical-22aa8c86054fca88ab1dc09b6a342d28949699e5.tar.bz2
historical-22aa8c86054fca88ab1dc09b6a342d28949699e5.zip
added owfs FUSE daemon support, small fixup for init scripts
Package-Manager: portage-2.1.4_rc9
Diffstat (limited to 'sys-fs/owfs')
-rw-r--r--sys-fs/owfs/ChangeLog9
-rw-r--r--sys-fs/owfs/Manifest47
-rw-r--r--sys-fs/owfs/files/digest-owfs-2.7_p0-r23
-rw-r--r--sys-fs/owfs/files/owfs.confd2
-rwxr-xr-xsys-fs/owfs/files/owfs.initd32
-rwxr-xr-xsys-fs/owfs/files/owftpd.initd18
-rwxr-xr-xsys-fs/owfs/files/owhttpd.initd18
-rwxr-xr-xsys-fs/owfs/files/owserver.initd18
-rw-r--r--sys-fs/owfs/owfs-2.7_p0-r2.ebuild118
9 files changed, 221 insertions, 44 deletions
diff --git a/sys-fs/owfs/ChangeLog b/sys-fs/owfs/ChangeLog
index a1771c192aac..a9b51ca51f79 100644
--- a/sys-fs/owfs/ChangeLog
+++ b/sys-fs/owfs/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-fs/owfs
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/ChangeLog,v 1.3 2007/12/15 16:10:06 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/ChangeLog,v 1.4 2007/12/17 17:26:35 wschlich Exp $
+
+*owfs-2.7_p0-r2 (17 Dec 2007)
+
+ 17 Dec 2007; Wolfram Schlich <wschlich@gentoo.org> +files/owfs.confd,
+ +files/owfs.initd, files/owftpd.initd, files/owhttpd.initd,
+ files/owserver.initd, +owfs-2.7_p0-r2.ebuild:
+ added owfs FUSE daemon support, small fixup for init scripts
*owfs-2.7_p0-r1 (15 Dec 2007)
diff --git a/sys-fs/owfs/Manifest b/sys-fs/owfs/Manifest
index 7f3e8399fe6e..041ed208600d 100644
--- a/sys-fs/owfs/Manifest
+++ b/sys-fs/owfs/Manifest
@@ -1,40 +1,52 @@
+AUX owfs.confd 86 RMD160 093ec2764df1d6a2f8fa2a70e3e0d0be856f610d SHA1 ce97c2a3ba1f8179c5018a32b1566f1b5c16f330 SHA256 56756af92788a0a7784d3e7ac6f7a7c7569dcd961ec112b6f7fdb4b82192ee56
+MD5 dfd1e98bc3898978c4a08a0e169a2b2c files/owfs.confd 86
+RMD160 093ec2764df1d6a2f8fa2a70e3e0d0be856f610d files/owfs.confd 86
+SHA256 56756af92788a0a7784d3e7ac6f7a7c7569dcd961ec112b6f7fdb4b82192ee56 files/owfs.confd 86
+AUX owfs.initd 852 RMD160 42169ce2befb5d69d9d94334dfec6df4800fd954 SHA1 abdee0813fa049cbe1062e348a66ba7872f34b67 SHA256 979545e41bab5a915bad96dc3dd5de1f02da5a96a08a96d7faed89459f40a030
+MD5 eccc8ddbe02a89b221b15cbc0b52791c files/owfs.initd 852
+RMD160 42169ce2befb5d69d9d94334dfec6df4800fd954 files/owfs.initd 852
+SHA256 979545e41bab5a915bad96dc3dd5de1f02da5a96a08a96d7faed89459f40a030 files/owfs.initd 852
AUX owftpd.confd 121 RMD160 63984e8a4a49ca73cb9b54ebb9d1dbfa5e2cda76 SHA1 53c47048b8038c38ae3687fa841a88dc844f09fa SHA256 a6513ef051d2290482b49ad4e79f1999abe95c61e40bbabb37e20c29b0dac61e
MD5 64ef59ff63d471117a898409a3e27a57 files/owftpd.confd 121
RMD160 63984e8a4a49ca73cb9b54ebb9d1dbfa5e2cda76 files/owftpd.confd 121
SHA256 a6513ef051d2290482b49ad4e79f1999abe95c61e40bbabb37e20c29b0dac61e files/owftpd.confd 121
-AUX owftpd.initd 903 RMD160 411218501ba3d8c26d64f2961fa2c36344c78129 SHA1 3d38fdebb424beeda3c6c9408fa90c60484c8acc SHA256 0d366fe45181a9debdd4b022594afbd4e426228405c6bc32ffc6b7c37db890e1
-MD5 fdce8cf80d7c8bd7fe7a862a59bccf58 files/owftpd.initd 903
-RMD160 411218501ba3d8c26d64f2961fa2c36344c78129 files/owftpd.initd 903
-SHA256 0d366fe45181a9debdd4b022594afbd4e426228405c6bc32ffc6b7c37db890e1 files/owftpd.initd 903
+AUX owftpd.initd 879 RMD160 1daf9b014b89277be3ad8d7ef6a00060dd93f377 SHA1 e88fabcc6fe99534dabf9adccd49948cb1ed6716 SHA256 eee9335bc990f98376df77af0f72bea97508820a7a8462f391cdcc555fd32b48
+MD5 a87384983d4c55298d2782ac24d87afe files/owftpd.initd 879
+RMD160 1daf9b014b89277be3ad8d7ef6a00060dd93f377 files/owftpd.initd 879
+SHA256 eee9335bc990f98376df77af0f72bea97508820a7a8462f391cdcc555fd32b48 files/owftpd.initd 879
AUX owhttpd.confd 89 RMD160 92a80ff6463d0944cce84ed2537ebeed23eca761 SHA1 c06bd8e771bc61a1e3a6095ff39fc7add4e01370 SHA256 62fe2751f31172d1dc042464f1bcdac3813663b9ce6843ee02747d8d0a587641
MD5 6790aa317e038aaf4e7754d0e5ba6f9f files/owhttpd.confd 89
RMD160 92a80ff6463d0944cce84ed2537ebeed23eca761 files/owhttpd.confd 89
SHA256 62fe2751f31172d1dc042464f1bcdac3813663b9ce6843ee02747d8d0a587641 files/owhttpd.confd 89
-AUX owhttpd.initd 865 RMD160 da9bff350a272ad1dd22fe50a9c714797c5e98b8 SHA1 ad7127268d13f540e134aaa93ba44b33da2729a1 SHA256 2ad9d1b77ef43f614783e061ad1889d7734519b0a6702b2957bc35d3a562c651
-MD5 de4ec460d1c02a2c0b634586b871e737 files/owhttpd.initd 865
-RMD160 da9bff350a272ad1dd22fe50a9c714797c5e98b8 files/owhttpd.initd 865
-SHA256 2ad9d1b77ef43f614783e061ad1889d7734519b0a6702b2957bc35d3a562c651 files/owhttpd.initd 865
+AUX owhttpd.initd 847 RMD160 5390c71bd8f1132db2a1b04e3749c01eb4a9d5e6 SHA1 a2789d3fd352c134d2bf096be083ab0b28339965 SHA256 7745a5aa8b016deacf4101556bf1d9d93409c3d578df302706526fe213878b69
+MD5 82005f9a89923803625cff9c94a9ee80 files/owhttpd.initd 847
+RMD160 5390c71bd8f1132db2a1b04e3749c01eb4a9d5e6 files/owhttpd.initd 847
+SHA256 7745a5aa8b016deacf4101556bf1d9d93409c3d578df302706526fe213878b69 files/owhttpd.initd 847
AUX owserver.confd 108 RMD160 18b8630190d50a150781306f782c78798d0518cd SHA1 eb4cd880f2a47bdc36c995cee263924cc3ddc2db SHA256 13a2a221288224aee0e504ef34ae2375635a5c7cf7f9dee593f649509179a6bf
MD5 605cd2b8f9a154317498f8f963b68213 files/owserver.confd 108
RMD160 18b8630190d50a150781306f782c78798d0518cd files/owserver.confd 108
SHA256 13a2a221288224aee0e504ef34ae2375635a5c7cf7f9dee593f649509179a6bf files/owserver.confd 108
-AUX owserver.initd 860 RMD160 ac273aaa6172077f47d65d71e6622974c0c89c23 SHA1 46f806d3b02f2fc5de88e1f8064687b31d450b5f SHA256 226f1c1947ccaf982413b9b1ba9ef3d7fa7f69f84ab897aff85dfbe94bd273bb
-MD5 b1755e130b73d617ee13963574028a78 files/owserver.initd 860
-RMD160 ac273aaa6172077f47d65d71e6622974c0c89c23 files/owserver.initd 860
-SHA256 226f1c1947ccaf982413b9b1ba9ef3d7fa7f69f84ab897aff85dfbe94bd273bb files/owserver.initd 860
+AUX owserver.initd 836 RMD160 9c34eeb203bd51a0be0df26a572e608927fecfd8 SHA1 adc20882047ce14e2880d4779b44580bee93de5d SHA256 06bebd3ceb688eac7e1585d7ecc17890765ec2edf8bdc7195235a2af66237a6d
+MD5 1fe2df2f114c901dc50a0332e0675e95 files/owserver.initd 836
+RMD160 9c34eeb203bd51a0be0df26a572e608927fecfd8 files/owserver.initd 836
+SHA256 06bebd3ceb688eac7e1585d7ecc17890765ec2edf8bdc7195235a2af66237a6d files/owserver.initd 836
DIST owfs-2.7p0.tar.gz 1058362 RMD160 734d385b93611e988499f47f805c4af090ad5bb8 SHA1 4026da34e1b94baa3167414e203e5f56bc24662a SHA256 dc1f7fe5cad844070eabe98149978c513c625a5a072987857bf1bc42eca42f8a
EBUILD owfs-2.7_p0-r1.ebuild 3141 RMD160 a30b708d1f69e0f01d70165e7288df525d29cd4e SHA1 35af2425d293c27592e6fe60abc8adb517e0bc97 SHA256 eb884f13b073f08a7fc9e18fa5ac2e761c9341ea5929896d646911b60ee4b616
MD5 51e32491dcf219f1f65d46cee64afe28 owfs-2.7_p0-r1.ebuild 3141
RMD160 a30b708d1f69e0f01d70165e7288df525d29cd4e owfs-2.7_p0-r1.ebuild 3141
SHA256 eb884f13b073f08a7fc9e18fa5ac2e761c9341ea5929896d646911b60ee4b616 owfs-2.7_p0-r1.ebuild 3141
+EBUILD owfs-2.7_p0-r2.ebuild 3687 RMD160 0139c5cea90f3ce1fc1a1331efb73d145f46abe7 SHA1 9d9baabb2a7511936c599a767ec74275b15f3256 SHA256 efbef9b450a4a1c849791efe7e791aadc9e68f3987bf46f1c70f16f040661829
+MD5 336a4b58b4e95a082676f4d590fe4a1a owfs-2.7_p0-r2.ebuild 3687
+RMD160 0139c5cea90f3ce1fc1a1331efb73d145f46abe7 owfs-2.7_p0-r2.ebuild 3687
+SHA256 efbef9b450a4a1c849791efe7e791aadc9e68f3987bf46f1c70f16f040661829 owfs-2.7_p0-r2.ebuild 3687
EBUILD owfs-2.7_p0.ebuild 1530 RMD160 b55e810f467b29ee45db27cb537c96758d2691c8 SHA1 232aaa48d93e849ffed80c5fb0b6710be2bc1758 SHA256 dd4a41b67667edb00c48da4cecd688c1c0a444a875d25c6122483caa3f577a21
MD5 e31f88b931797c813557786eb8d69d73 owfs-2.7_p0.ebuild 1530
RMD160 b55e810f467b29ee45db27cb537c96758d2691c8 owfs-2.7_p0.ebuild 1530
SHA256 dd4a41b67667edb00c48da4cecd688c1c0a444a875d25c6122483caa3f577a21 owfs-2.7_p0.ebuild 1530
-MISC ChangeLog 763 RMD160 ad2f0396edbb5b8303451090299d57d1a8e4f5ef SHA1 bc94d465c3b7f4a257e49d681803ab3a03d47533 SHA256 1a27dd8bc542b13f4d010c4a6e9ae619c52f8acf580955896ef3e679c62abd82
-MD5 c724409f4dd0cacab6d55fdc31296e43 ChangeLog 763
-RMD160 ad2f0396edbb5b8303451090299d57d1a8e4f5ef ChangeLog 763
-SHA256 1a27dd8bc542b13f4d010c4a6e9ae619c52f8acf580955896ef3e679c62abd82 ChangeLog 763
+MISC ChangeLog 1040 RMD160 cee00d22adbdf10db0d7f89a3d6b81d9d394a284 SHA1 1ce02f7a110ceaad2923e5fe7b9e7c4c5d69f561 SHA256 87a53d0a14eea0a28bd52c96d74d78c80edf867c03f749632c2959796737c3ef
+MD5 2dc5abf93af68f44e00d6d6a9494b810 ChangeLog 1040
+RMD160 cee00d22adbdf10db0d7f89a3d6b81d9d394a284 ChangeLog 1040
+SHA256 87a53d0a14eea0a28bd52c96d74d78c80edf867c03f749632c2959796737c3ef ChangeLog 1040
MISC metadata.xml 603 RMD160 4a4eded26c136cfb518862d46714f1bc1e207853 SHA1 b3043c8a2a56503064c0c97db0596a0b684c82bc SHA256 aae3ae268a798f00e5f4a33f8338d62c2c2fc7e384313804bf7967725dab4623
MD5 5f4010812ff21627cee10573aaa5645b metadata.xml 603
RMD160 4a4eded26c136cfb518862d46714f1bc1e207853 metadata.xml 603
@@ -45,3 +57,6 @@ SHA256 a774b0d778926dcfae10eb071853901de952dec716880d32524da122a3baff55 files/di
MD5 6d58dd137a5399ce8b3f967b5125bc9f files/digest-owfs-2.7_p0-r1 235
RMD160 7ee34802e559f989bd0c607c65dd66c0cd6d1b94 files/digest-owfs-2.7_p0-r1 235
SHA256 a774b0d778926dcfae10eb071853901de952dec716880d32524da122a3baff55 files/digest-owfs-2.7_p0-r1 235
+MD5 6d58dd137a5399ce8b3f967b5125bc9f files/digest-owfs-2.7_p0-r2 235
+RMD160 7ee34802e559f989bd0c607c65dd66c0cd6d1b94 files/digest-owfs-2.7_p0-r2 235
+SHA256 a774b0d778926dcfae10eb071853901de952dec716880d32524da122a3baff55 files/digest-owfs-2.7_p0-r2 235
diff --git a/sys-fs/owfs/files/digest-owfs-2.7_p0-r2 b/sys-fs/owfs/files/digest-owfs-2.7_p0-r2
new file mode 100644
index 000000000000..6e4364d3b0c7
--- /dev/null
+++ b/sys-fs/owfs/files/digest-owfs-2.7_p0-r2
@@ -0,0 +1,3 @@
+MD5 07ee9ad9973c47b3ab6da923c97fa5eb owfs-2.7p0.tar.gz 1058362
+RMD160 734d385b93611e988499f47f805c4af090ad5bb8 owfs-2.7p0.tar.gz 1058362
+SHA256 dc1f7fe5cad844070eabe98149978c513c625a5a072987857bf1bc42eca42f8a owfs-2.7p0.tar.gz 1058362
diff --git a/sys-fs/owfs/files/owfs.confd b/sys-fs/owfs/files/owfs.confd
new file mode 100644
index 000000000000..5cf48895adc5
--- /dev/null
+++ b/sys-fs/owfs/files/owfs.confd
@@ -0,0 +1,2 @@
+# owfs configuration
+OWFS_OPTS="-m /var/lib/owfs/mnt --allow_other -s 127.0.0.1:9300"
diff --git a/sys-fs/owfs/files/owfs.initd b/sys-fs/owfs/files/owfs.initd
new file mode 100755
index 000000000000..c8174110f1cf
--- /dev/null
+++ b/sys-fs/owfs/files/owfs.initd
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owfs.initd,v 1.1 2007/12/17 17:26:35 wschlich Exp $
+
+INSTANCE=${SVCNAME#*.}
+PROGRAM=${SVCNAME%%.*}
+PIDFILE=${PIDFILE:-/var/run/owfs/${PROGRAM}.pid}
+OWUID=${OWUID:-owfs}
+OWGID=${OWGID:-owfs}
+
+depend() {
+ need net
+ use logger owserver
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
+ --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \
+ --pid_file ${PIDFILE} \
+ --background --error_print 1 \
+ ${OWHTTPD_OPTS:--m /var/lib/owfs/mnt --allow_other -s 127.0.0.1:9300}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
+ --pidfile ${PIDFILE} -u ${OWUID}
+ eend $?
+}
diff --git a/sys-fs/owfs/files/owftpd.initd b/sys-fs/owfs/files/owftpd.initd
index 30c70eb8a3b6..664f5351f557 100755
--- a/sys-fs/owfs/files/owftpd.initd
+++ b/sys-fs/owfs/files/owftpd.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owftpd.initd,v 1.1 2007/12/15 16:10:07 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owftpd.initd,v 1.2 2007/12/17 17:26:35 wschlich Exp $
INSTANCE=${SVCNAME#*.}
PROGRAM=${SVCNAME%%.*}
@@ -10,23 +10,23 @@ OWUID=${OWUID:-owfs}
OWGID=${OWGID:-owfs}
depend() {
- need net
- use logger owserver
+ need net
+ use logger owserver
}
start() {
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
--pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \
--pid_file ${PIDFILE} \
--background --error_print 1 \
${OWFTPD_OPTS:---nozero -p 127.0.0.1:9321 -s 127.0.0.1:9300 --max_clients 5 --timeout_ftp 600}
- eend $?
+ eend $?
}
stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
--pidfile ${PIDFILE} -u ${OWUID}
- eend $?
+ eend $?
}
diff --git a/sys-fs/owfs/files/owhttpd.initd b/sys-fs/owfs/files/owhttpd.initd
index 24b40783e471..614e1391a58e 100755
--- a/sys-fs/owfs/files/owhttpd.initd
+++ b/sys-fs/owfs/files/owhttpd.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owhttpd.initd,v 1.1 2007/12/15 16:10:07 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owhttpd.initd,v 1.2 2007/12/17 17:26:35 wschlich Exp $
INSTANCE=${SVCNAME#*.}
PROGRAM=${SVCNAME%%.*}
@@ -10,23 +10,23 @@ OWUID=${OWUID:-owfs}
OWGID=${OWGID:-owfs}
depend() {
- need net
- use logger owserver
+ need net
+ use logger owserver
}
start() {
- ebegin "Starting owhttpd"
- start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
--pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \
--pid_file ${PIDFILE} \
--background --error_print 1 \
${OWHTTPD_OPTS:---nozero -p 127.0.0.1:9380 -s 127.0.0.1:9300}
- eend $?
+ eend $?
}
stop() {
- ebegin "Stopping owhttpd"
- start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
--pidfile ${PIDFILE} -u ${OWUID}
- eend $?
+ eend $?
}
diff --git a/sys-fs/owfs/files/owserver.initd b/sys-fs/owfs/files/owserver.initd
index 402e319ce40c..c46044b05858 100755
--- a/sys-fs/owfs/files/owserver.initd
+++ b/sys-fs/owfs/files/owserver.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owserver.initd,v 1.1 2007/12/15 16:10:07 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owserver.initd,v 1.2 2007/12/17 17:26:35 wschlich Exp $
INSTANCE=${SVCNAME#*.}
PROGRAM=${SVCNAME%%.*}
@@ -10,23 +10,23 @@ OWUID=${OWUID:-owfs}
OWGID=${OWGID:-owfs}
depend() {
- need net
- use logger
+ need net
+ use logger
}
start() {
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/bin/${PROGRAM} \
--pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \
--pid_file ${PIDFILE} \
--background --error_print 1 \
${OWSERVER_OPTS:---nozero -p 127.0.0.1:9300 -d /dev/ttyS0}
- eend $?
+ eend $?
}
stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \
--pidfile ${PIDFILE} -u ${OWUID}
- eend $?
+ eend $?
}
diff --git a/sys-fs/owfs/owfs-2.7_p0-r2.ebuild b/sys-fs/owfs/owfs-2.7_p0-r2.ebuild
new file mode 100644
index 000000000000..d6987a56a7b9
--- /dev/null
+++ b/sys-fs/owfs/owfs-2.7_p0-r2.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/owfs-2.7_p0-r2.ebuild,v 1.1 2007/12/17 17:26:35 wschlich Exp $
+
+inherit eutils
+
+MY_P=${P/_/}
+
+DESCRIPTION="Access 1-Wire devices like a filesystem"
+SRC_URI="mirror://sourceforge/owfs/${MY_P}.tar.gz"
+HOMEPAGE="http://www.owfs.org/ http://owfs.sourceforge.net/"
+LICENSE="GPL-2"
+DEPEND="fuse? ( sys-fs/fuse )
+ perl? ( dev-lang/perl dev-lang/swig )
+ php? ( dev-lang/php dev-lang/swig )
+ python? ( dev-lang/python dev-lang/swig )
+ tcl? ( dev-lang/tcl )
+ usb? ( dev-libs/libusb )
+ zeroconf? ( || ( net-dns/avahi net-misc/mDNSResponder ) )"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="debug fuse ftpd httpd parport perl php python server tcl usb zeroconf"
+
+S=${WORKDIR}/${MY_P}
+
+OWUID=${OWUID:-owfs}
+OWGID=${OWGID:-owfs}
+
+pkg_setup() {
+ if use php && has_version dev-lang/php && ! built_with_use dev-lang/php cli; then
+ eerror "${PN} needs the command line interface (CLI) of php"
+ eerror "Please re-emerge dev-lang/php with USE=cli"
+ die "need dev-lang/php built with cli USE flag"
+ fi
+ if use zeroconf && has_version net-dns/avahi && ! built_with_use net-dns/avahi mdnsresponder-compat; then
+ eerror "You need to recompile net-dns/avahi with mdnsresponder-compat USE flag"
+ die "net-dns/avahi is missing required mdnsresponder-compat support for USE=zeroconf"
+ fi
+ enewgroup ${OWGID} 150
+ enewuser ${OWUID} 150 -1 -1 ${OWGID}
+}
+
+src_compile() {
+ econf \
+ $(use_enable debug) \
+ $(use_enable fuse owfs) \
+ $(use_enable ftpd owftpd) \
+ $(use_enable httpd owhttpd) \
+ $(use_enable parport) \
+ $(use_enable perl owperl) \
+ $(use_enable php owphp) \
+ $(use_enable python owpython) \
+ $(use_enable server owserver) \
+ $(use_enable tcl owtcl) \
+ $(use_enable zeroconf zero) \
+ $(use_enable usb) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README NEWS ChangeLog AUTHORS
+ if use server || use httpd || use ftpd || use fuse; then
+ diropts -m 0750 -o ${OWUID} -g ${OWGID}
+ dodir /var/run/owfs
+ for i in server httpd ftpd; do
+ if use ${i}; then
+ newinitd "${FILESDIR}"/ow${i}.initd ow${i}
+ newconfd "${FILESDIR}"/ow${i}.confd ow${i}
+ fi
+ done
+ if use fuse; then
+ dodir /var/lib/owfs
+ dodir /var/lib/owfs/mnt
+ newinitd "${FILESDIR}"/owfs.initd owfs
+ newconfd "${FILESDIR}"/owfs.confd owfs
+ fi
+ fi
+}
+
+pkg_postinst() {
+ if use server || use httpd || use ftpd || use fuse; then
+ echo
+ einfo
+ einfo "Be sure to check/edit the following files,"
+ einfo "e.g. to fit your 1 wire bus controller"
+ einfo "device or daemon network settings:"
+ for i in server httpd ftpd; do
+ if use ${i}; then
+ einfo "- ${ROOT%/}/etc/conf.d/ow${i}"
+ fi
+ done
+ if use fuse; then
+ einfo "- ${ROOT%/}/etc/conf.d/owfs"
+ fi
+ einfo
+ echo
+ if [[ ${OWUID} != root ]]; then
+ ewarn
+ ewarn "In order to allow the OWFS daemon user '${OWUID}' to read"
+ ewarn "from and/or write to a 1 wire bus controller device, make"
+ ewarn "sure the user has appropriate permission to access the"
+ ewarn "corresponding device node/path (e.g. /dev/ttyS0), for example"
+ ewarn "by adding the user to the group 'uucp' (for serial devices)"
+ ewarn "or 'usb' (for USB devices accessed via usbfs on /proc/bus/usb)."
+ ewarn
+ if use fuse; then
+ ewarn "In order to allow regular users to read from and/or write to"
+ ewarn "1 wire bus devices accessible via the owfs FUSE filesystem"
+ ewarn "client and its filesystem mountpoint, make sure the user is"
+ ewarn "a member of the group '${OWGID}'."
+ ewarn
+ fi
+ echo
+ fi
+ fi
+}