Complete Debian packaging
darcs-hash:20071130171759-86b55-eb1275573723a4caec19126f94ff645d7aa515d3.gz
This commit is contained in:
@@ -25,6 +25,7 @@ pid_file: /var/run/jabber/jmc.pid
|
|||||||
welcome_message: "Welcome to Jabber Mail Component"
|
welcome_message: "Welcome to Jabber Mail Component"
|
||||||
# a comma separated list of JIDs
|
# a comma separated list of JIDs
|
||||||
admins: admin@localhost
|
admins: admin@localhost
|
||||||
|
log_file: /var/log/jabber/jmc.log
|
||||||
|
|
||||||
[jmc]
|
[jmc]
|
||||||
mail_default_encoding: iso-8859-1
|
mail_default_encoding: iso-8859-1
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
jmc (0.3) unstable; urgency=low
|
||||||
|
|
||||||
|
* Global refactoring (Splitted and now use python-jcl)
|
||||||
|
* SMTP email sending support
|
||||||
|
|
||||||
|
-- David Rousselie <dax@happycoders.org> Thu, 29 Nov 2007 08:23:30 +0100
|
||||||
|
|
||||||
jmc (0.2.3) unstable; urgency=low
|
jmc (0.2.3) unstable; urgency=low
|
||||||
|
|
||||||
* keep boolean settings with tkabber
|
* keep boolean settings with tkabber
|
||||||
|
|||||||
1
debian/docs
vendored
1
debian/docs
vendored
@@ -1,2 +1,3 @@
|
|||||||
README
|
README
|
||||||
TODO
|
TODO
|
||||||
|
conf/jmc.conf
|
||||||
|
|||||||
17
debian/init.d
vendored
17
debian/init.d
vendored
@@ -11,15 +11,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
DAEMON=/usr/sbin/jmc
|
DAEMON=/usr/bin/jmc
|
||||||
NAME=jmc
|
NAME=jmc
|
||||||
DESC=jmc
|
DESC=jmc
|
||||||
|
|
||||||
test -x $DAEMON || exit 0
|
test -x $DAEMON || exit 0
|
||||||
|
|
||||||
# Include jmc defaults if available
|
# Include jmc defaults if available
|
||||||
if [ -f /etc/default/jmc ] ; then
|
if [ -f /etc/default/python-jmc ] ; then
|
||||||
. /etc/default/jmc
|
. /etc/default/python-jmc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
@@ -27,14 +27,19 @@ set -e
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting $DESC: "
|
echo -n "Starting $DESC: "
|
||||||
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
|
start-stop-daemon --start --quiet --chuid jabber \
|
||||||
|
--background --pidfile $PID_FILE \
|
||||||
--exec $DAEMON -- $DAEMON_OPTS
|
--exec $DAEMON -- $DAEMON_OPTS
|
||||||
echo "$NAME."
|
echo "$NAME."
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping $DESC: "
|
echo -n "Stopping $DESC: "
|
||||||
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
|
if [ -f $PID_FILE ]; then
|
||||||
--exec $DAEMON
|
start-stop-daemon --stop --quiet --user jabber \
|
||||||
|
--pidfile $PID_FILE
|
||||||
|
else
|
||||||
|
echo "$PID_FILE does not exist. JMC seems to be not started"
|
||||||
|
fi
|
||||||
echo "$NAME."
|
echo "$NAME."
|
||||||
;;
|
;;
|
||||||
#reload)
|
#reload)
|
||||||
|
|||||||
2
debian/postinst
vendored
2
debian/postinst
vendored
@@ -42,6 +42,8 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
chown jabber:daemon /var/spool/jabber
|
chown jabber:daemon /var/spool/jabber
|
||||||
chown jabber:daemon /var/run/jabber
|
chown jabber:daemon /var/run/jabber
|
||||||
|
chown jabber:daemon /var/log/jabber
|
||||||
|
chown jabber:daemon /etc/jabber
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
|||||||
@@ -4,7 +4,10 @@
|
|||||||
|
|
||||||
ENABLE="false"
|
ENABLE="false"
|
||||||
|
|
||||||
|
# Must be the same value as in jmc.conf
|
||||||
|
PID_FILE="/var/run/jabber/jmc.pid"
|
||||||
|
|
||||||
# Additional options that are passed to the Daemon.
|
# Additional options that are passed to the Daemon.
|
||||||
# use this line to activate debug
|
# use this line to activate debug
|
||||||
#DAEMON_OPTS="-D"
|
#DAEMON_OPTS="-d"
|
||||||
DAEMON_OPTS=""
|
DAEMON_OPTS="-c /etc/jabber/jmc.conf"
|
||||||
1
debian/python-jmc.install
vendored
Normal file
1
debian/python-jmc.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
conf/jmc.conf etc/jabber/
|
||||||
3
debian/rules
vendored
3
debian/rules
vendored
@@ -42,6 +42,9 @@ binary-indep: build install
|
|||||||
dh_testdir -i
|
dh_testdir -i
|
||||||
dh_testroot -i
|
dh_testroot -i
|
||||||
dh_pycentral -i
|
dh_pycentral -i
|
||||||
|
dh_install -i
|
||||||
|
dh_installinit -i
|
||||||
|
dh_install
|
||||||
dh_installdocs -i
|
dh_installdocs -i
|
||||||
dh_installdirs -i
|
dh_installdirs -i
|
||||||
dh_installexamples -i
|
dh_installexamples -i
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ db_url: %(type)s://%(host)s%(name)s
|
|||||||
|
|
||||||
[component]
|
[component]
|
||||||
pid_file: /var/run/jabber/test_jmc.pid
|
pid_file: /var/run/jabber/test_jmc.pid
|
||||||
|
log_file: /var/log/jabber/jmc.log
|
||||||
|
|
||||||
[jmc]
|
[jmc]
|
||||||
mail_default_encoding: test_iso-8859-1
|
mail_default_encoding: test_iso-8859-1
|
||||||
|
|||||||
Reference in New Issue
Block a user