initial checkin
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@410 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
703b7cfb74
commit
fd6579dd3c
4
app-admin/inoticoming/Manifest
Normal file
4
app-admin/inoticoming/Manifest
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
AUX inoticoming.confd 617 RMD160 41d90b25cab4072862a38571f9c98e73fa8112f9 SHA1 4ae4256df2979d9587ea5f9e6d4b6675bcbca9bc SHA256 e52c85c5ff74947606034f372dc64cb10136489438bde8edc04979f2409b0566
|
||||||
|
AUX inoticoming.initd 1024 RMD160 42cfbb801299746172481dbcec64cde5e65017d2 SHA1 a50987e0d02153bea75aab99f0891fe722b02d2a SHA256 7e694660d35d39d7b4a67bb798ab22da0769e2dc3dd38c3572ffba5feef4852c
|
||||||
|
DIST inoticoming_0.2.1.orig.tar.gz 89657 RMD160 f2f585707a448cb8cd5e8e76b8b95515faf54b4d SHA1 c925d8ab572707e2454ee036a82173afa9ca6a23 SHA256 2318844d8d4b96bb20e536fe3bddb795bd86aa9e80b0603f7c74efa42c52161a
|
||||||
|
EBUILD inoticoming-0.2.1.ebuild 733 RMD160 132e14403f08f92671a82a9de8b9f5e5fde49c3d SHA1 1a2a7f0eb7621fd8a7358977920b9e833bd6ee4a SHA256 f3160af9a7dd8f0440008c33e232368b870ed5517d962716752ebefe4a221143
|
22
app-admin/inoticoming/files/inoticoming.confd
Normal file
22
app-admin/inoticoming/files/inoticoming.confd
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# /etc/conf.d/inoticoming
|
||||||
|
#
|
||||||
|
# for an explanation of options and actions, see inoticoming(1)
|
||||||
|
|
||||||
|
# user to run inoticoming as
|
||||||
|
USER=inoticoming
|
||||||
|
|
||||||
|
# log to some file instead of syslog
|
||||||
|
# required if you want to use --stdout-to-log or --stderr-to-log in actions
|
||||||
|
LOGFILE="/var/log/inoticoming.log"
|
||||||
|
|
||||||
|
# first search the directory for files already existing
|
||||||
|
# 0 for false, 1 for true
|
||||||
|
INITIALSEARCH=0
|
||||||
|
|
||||||
|
# directory to monitor
|
||||||
|
DIR=/var/spool/incoming
|
||||||
|
|
||||||
|
# actions
|
||||||
|
BASEDIR=/var/cache/reprepro/local
|
||||||
|
RULENAME=incoming
|
||||||
|
ACTIONS="--suffix .changes --stderr-to-log reprepro -s -b $BASEDIR --waitforlock 1000 processincoming $RULENAME {} ;"
|
47
app-admin/inoticoming/files/inoticoming.initd
Normal file
47
app-admin/inoticoming/files/inoticoming.initd
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
#!/sbin/runscript
|
||||||
|
|
||||||
|
DAEMON=/usr/bin/inoticoming
|
||||||
|
PIDFILE=/var/run/inoticoming.pid
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
use net
|
||||||
|
after logger
|
||||||
|
}
|
||||||
|
|
||||||
|
checkconfig() {
|
||||||
|
if [ ! -d "$DIR" ] ; then
|
||||||
|
eerror "Incoming $DIR has not been configured."
|
||||||
|
eend 1
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
start() {
|
||||||
|
checkconfig || return 1
|
||||||
|
ebegin "Starting incoming queue monitor"
|
||||||
|
# make sure inoticoming can write the PID to $PIDFILE
|
||||||
|
[ -f $PIDFILE ] || touch $PIDFILE
|
||||||
|
chown $USER $PIDFILE
|
||||||
|
OPTIONS="--pid-file $PIDFILE"
|
||||||
|
|
||||||
|
# make sure inoticoming can write to $LOGFILE
|
||||||
|
if [ -n $LOGFILE ] ; then
|
||||||
|
[ -f $LOGFILE ] || touch $LOGFILE
|
||||||
|
chown $USER $LOGFILE
|
||||||
|
OPTIONS="$OPTIONS --logfile $LOGFILE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# should we do an initial search of the directory?
|
||||||
|
[ "$INITIALSEARCH" != "0" ] && OPTIONS="$OPTIONS --initialsearch"
|
||||||
|
|
||||||
|
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid $USER -- \
|
||||||
|
$OPTIONS $DIR $ACTIONS
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
checkconfig || return 1
|
||||||
|
ebegin "Stopping incoming queue monitor"
|
||||||
|
start-stop-daemon --stop --quiet --pidfile $PIDFILE
|
||||||
|
eend $?
|
||||||
|
}
|
27
app-admin/inoticoming/inoticoming-0.2.1.ebuild
Normal file
27
app-admin/inoticoming/inoticoming-0.2.1.ebuild
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Copyright 1999-2008 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
inherit eutils
|
||||||
|
|
||||||
|
DESCRIPTION="inoticoming is a daemon to watch a directory with Linux's inotify"
|
||||||
|
SRC_URI="mirror://debian/pool/main/i/${PN}/${PN}_${PV}.orig.tar.gz
|
||||||
|
http://alioth.debian.org/frs/download.php/2489/${PN}_${PV}.orig.tar.gz"
|
||||||
|
HOMEPAGE="http://alioth.debian.org/projects/mirrorer/"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
KEYWORDS="~x86 -ppc -sparc -alpha"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup ${PN}
|
||||||
|
enewuser ${PN} -1 -1 -1 ${PN}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR=${D} install
|
||||||
|
newinitd ${FILESDIR}/inoticoming.initd inoticoming
|
||||||
|
newconfd ${FILESDIR}/inoticoming.confd inoticoming
|
||||||
|
keepdir /var/spool/incoming
|
||||||
|
}
|
5
app-admin/inoticoming/metadata.xml
Normal file
5
app-admin/inoticoming/metadata.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>maintainer-wanted</herd>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user