Changeset 123
- Timestamp:
- 11/13/07 19:11:37 (1 year ago)
- Files:
-
- debian/README.Debian (deleted)
- debian/conffiles (deleted)
- debian/control (modified) (1 diff)
- debian/copyright (modified) (1 diff)
- debian/dirs (modified) (1 diff)
- debian/init.d (modified) (2 diffs)
- debian/jmc.conf (deleted)
- debian/jmc.sh (deleted)
- debian/postinst (modified) (2 diffs)
- debian/postrm (deleted)
- debian/preinst (deleted)
- debian/prerm (deleted)
- debian/rules (modified) (1 diff)
- src/jmc.egg-info (added)
- src/jmc.egg-info/PKG-INFO (added)
- src/jmc.egg-info/SOURCES.txt (added)
- src/jmc.egg-info/dependency_links.txt (added)
- src/jmc.egg-info/entry_points.txt (added)
- src/jmc.egg-info/top_level.txt (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
debian/control
r43 r123 3 3 Priority: optional 4 4 Maintainer: David Rousselie <dax@happycoders.org> 5 Build-Depends: debhelper (>= 4.1.0) 6 Standards-Version: 3.6.2 5 Build-Depends: python-setuptools (>= 0.6b3-1), python-all-dev (>= 2.3.5-11), debhelper (>= 5.0.38), python-central (>= 0.5.6) 6 Standards-Version: 3.7.2 7 XS-Python-Version: all 7 8 8 Package: jmc9 Package: python-jmc 9 10 Architecture: all 10 Depends: ${python:Depends}, python-pyxmpp (>= 0.5) 11 Recommends: python2.4-pysqlite2 (>= 2.0) 11 Depends: ${python:Depends}, python-jcl (>= 0.1) 12 Recommends: 13 Suggests: 14 XB-Python-Version: ${python:Versions} 15 Provides: ${python:Provides} 12 16 Description: JMC is an email gateway for Jabber 13 JMC is a jabber service to check email from POP3 and IMAP4 server and retrieve them or just a notification of new emails. Jabber users can register multiple email accounts. 17 JMC is a jabber service to check email from POP3 and IMAP4 server and 18 retrieve them or just a notification of new emails. Jabber users can 19 register multiple email accounts. debian/copyright
r43 r123 2 2 Wed, 26 Jul 2006 22:04:38 +0200. 3 3 4 It was downloaded from http://people.happycoders.org/dax/ jabber/jmc.html4 It was downloaded from http://people.happycoders.org/dax/projects/jmc 5 5 6 6 Copyright Holder: David Rousselie <dax@happycoders.org> debian/dirs
r43 r123 2 2 var/log/jabber 3 3 var/spool/jabber 4 etc/default5 4 etc/jabber 6 usr/share/jmc7 5 usr/bin debian/init.d
r43 r123 1 #! /bin/bash -e 1 #! /bin/sh 2 # 3 # skeleton example file to build /etc/init.d/ scripts. 4 # This file should be used to construct scripts for /etc/init.d. 5 # 6 # Written by Miquel van Smoorenburg <miquels@cistron.nl>. 7 # Modified for Debian 8 # by Ian Murdock <imurdock@gnu.ai.mit.edu>. 9 # 10 # Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl 11 # 2 12 3 export PATH=/sbin:/bin:/usr/sbin:/usr/bin 13 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 14 DAEMON=/usr/sbin/jmc 15 NAME=jmc 16 DESC=jmc 4 17 5 # ----- load init-functions if they exist ----- 18 test -x $DAEMON || exit 0 6 19 7 if [ -f /lib/lsb/init-functions ]; then 8 . /etc/lsb-release 9 . / lib/lsb/init-functions20 # Include jmc defaults if available 21 if [ -f /etc/default/jmc ] ; then 22 . /etc/default/jmc 10 23 fi 11 24 12 # ----- Functions for printing messages (Works for debian and looks good in ubuntu too) 13 14 log_start() 15 { 16 case $DISTRIB_ID.$DISTRIB_RELEASE in 17 Ubuntu.[0-4].*|Ubuntu.5.[0-9]|Ubuntu.5.10) 18 log_begin_msg $1 19 ;; 20 Ubuntu.*.*) 21 log_daemon_msg $1 22 ;; 23 *) 24 echo -n $1 25 ;; 26 esac 27 } 28 29 log_end() 30 { 31 case $DISTRIB_ID.$DISTRIB_RELEASE in 32 Ubuntu.*.*) 33 log_end_msg $1 34 ;; 35 *) 36 if [ "$1" = "0" ]; then 37 echo "Started" 38 else 39 echo "Error starting daemon, check the logs." 40 fi 41 ;; 42 esac 43 } 44 45 log_failure() 46 { 47 case $DISTRIB_ID.$DISTRIB_RELEASE in 48 Ubuntu.*.*) 49 log_failure_msg $1 50 ;; 51 *) 52 echo $1 53 ;; 54 esac 55 } 56 57 # ----- set required environment ----- 58 59 TRANS_NAME=jmc 60 TRANS_DESC="Jabber Mail Component" 61 TRANS_HOME=/usr/share/$TRANS_NAME 62 TRANS_CONFIG=/etc/jabber/$TRANS_NAME.conf 63 TRANS_USER=jabber 64 TRANS_GROUP=daemon 65 TRANS_PID=`grep "<pidfile>.*</pidfile>" $TRANS_CONFIG | sed 's:.*<pidfile>\(.*\)</pidfile>.*:\1:'` 66 TRANS_DAEMON=/usr/bin/jmc 67 TRANS_START="--chuid $TRANS_USER:$TRANS_GROUP --chdir $TRANS_HOME --pidfile $TRANS_PID" 68 TRANS_STOP="--pidfile $TRANS_PID" 69 TRANS_OPTIONS="-c $TRANS_CONFIG" 70 TRANSPORT_DEFAULTS_FILE=/etc/default/$TRANS_NAME 71 72 # ----- Check if transport is enabled ----- 73 74 if [ -s $TRANSPORT_DEFAULTS_FILE ]; then 75 . $TRANSPORT_DEFAULTS_FILE 76 case "x$ENABLE" in 77 xtrue) ;; 78 xfalse) 79 exit 0 80 ;; 81 *) 82 log_failure "Value of ENABLE in $TRANSPORT_DEFAULTS_FILE must be either 'true' or 'false';" 83 log_failure "not starting $TRANS_NAME daemon." 84 exit 0 85 ;; 86 esac 87 else 88 log_failure "$TRANSPORT_DEFAULTS_FILE not found. Not starting $TRANS_NAME daemon." 89 exit 1 90 fi 91 92 # ----- do the action ----- 25 set -e 93 26 94 27 case "$1" in 95 config) 96 echo "Configuration:" 97 echo " TRANS_NAME=$TRANS_NAME" 98 echo " TRANS_DESC=$TRANS_DESC" 99 echo " TRANS_HOME=$TRANS_HOME" 100 echo " TRANS_CONFIG=$TRANS_CONFIG" 101 echo " TRANS_USER=$TRANS_USER" 102 echo " TRANS_PID=$TRANS_PID" 103 echo " TRANS_DAEMON=$TRANS_DAEMON" 104 echo " TRANS_OPTIONS=$TRANS_OPTIONS" 28 start) 29 echo -n "Starting $DESC: " 30 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ 31 --exec $DAEMON -- $DAEMON_OPTS 32 echo "$NAME." 105 33 ;; 106 107 console) 108 $TRANS_DAEMON $TRANS_OPTIONS 34 stop) 35 echo -n "Stopping $DESC: " 36 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ 37 --exec $DAEMON 38 echo "$NAME." 109 39 ;; 110 111 start) 112 log_start "Starting $TRANS_DESC: " 113 if start-stop-daemon $TRANS_START --start --oknodo --exec $TRANS_DAEMON -- $TRANS_OPTIONS $DAEMON_OPTS >/dev/null 2>&1; then 114 log_end 0 115 else 116 log_end 1 117 fi 40 #reload) 41 # 42 # If the daemon can reload its config files on the fly 43 # for example by sending it SIGHUP, do it here. 44 # 45 # If the daemon responds to changes in its config file 46 # directly anyway, make this a do-nothing entry. 47 # 48 # echo "Reloading $DESC configuration files." 49 # start-stop-daemon --stop --signal 1 --quiet --pidfile \ 50 # /var/run/$NAME.pid --exec $DAEMON 51 #;; 52 force-reload) 53 # 54 # If the "reload" option is implemented, move the "force-reload" 55 # option to the "reload" entry above. If not, "force-reload" is 56 # just the same as "restart" except that it does nothing if the 57 # daemon isn't already running. 58 # check wether $DAEMON is running. If so, restart 59 start-stop-daemon --stop --test --quiet --pidfile \ 60 /var/run/$NAME.pid --exec $DAEMON \ 61 && $0 restart \ 62 || exit 0 118 63 ;; 119 stop) 120 log_start "Stopping $TRANS_DESC: " 121 if start-stop-daemon --stop $TRANS_STOP --retry 10 --oknodo 2>&1; then 122 log_end 0 123 else 124 log_end 1 125 fi 64 restart) 65 echo -n "Restarting $DESC: " 66 start-stop-daemon --stop --quiet --pidfile \ 67 /var/run/$NAME.pid --exec $DAEMON 68 sleep 1 69 start-stop-daemon --start --quiet --pidfile \ 70 /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS 71 echo "$NAME." 126 72 ;; 127 reload|force-reload) 128 log_start "Reloading $TRANS_DESC: " 129 if start-stop-daemon --stop $TRANS_STOP --signal HUP >/dev/null 2>&1; then 130 log_end 0 131 else 132 log_end 1 133 fi 134 ;; 135 restart) 136 $0 stop 137 sleep 5 138 $0 start 139 ;; 140 *) 141 echo "Usage: /etc/init.d/$TRANS_NAME {config|console|start|stop|restart|reload|force-reload}" >&2 73 *) 74 N=/etc/init.d/$NAME 75 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 76 echo "Usage: $N {start|stop|restart|force-reload}" >&2 142 77 exit 1 143 78 ;; … … 145 80 146 81 exit 0 147 debian/postinst
r43 r123 1 1 #! /bin/sh 2 # postinst script for j abber-pyaim2 # postinst script for jmc 3 3 # 4 4 # see: dh_installdeb(1) … … 26 26 27 27 if [ "$uid" ]; then 28 # guess??? the checks!!!29 28 if [ $uid -ge 100 ] && [ $uid -le 999 ]; then 30 29 echo "jabber uid check: ok" debian/rules
r43 r123 1 1 #!/usr/bin/make -f 2 # jmc debian/rules file3 # Uncomment this to turn on verbose mode.4 #export DH_VERBOSE=15 2 6 configure: configure-stamp 7 configure-stamp: 8 dh_testdir 9 touch configure-stamp 3 # This file was automatically generated by stdeb 0.2.a1 at 4 # Tue, 13 Nov 2007 19:00:04 +0100 5 6 PACKAGE_NAME=python-jmc 7 MODULE_NAME=jmc 8 DEB_UPSTREAM_VERSION=0.3 9 10 PYVERS=$(shell pyversions -vr) 10 11 11 12 build: build-stamp 12 13 build-stamp: configure-stamp 14 dh_testdir 15 touch build-stamp 16 13 build-stamp: $(PYVERS:%=build-python%) 14 touch $@ 15 build-python%: 16 # Force setuptools, but reset sys.argv[0] to 'setup.py' because setup.py files expect that. 17 python$* -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'__file__':f,'__name__':'__main__'})" build 18 touch $@ 17 19 clean: 18 20 dh_testdir 19 21 dh_testroot 20 rm -f build-stamp configure-stamp 22 rm -f *-stamp 23 rm -rf dist build 24 -find -name '*.py[co]' | xargs rm -f 25 # find . -name *.pyc -exec rm {} \; 26 dh_clean 21 27 22 # Clean up package tree 23 rm -f -R $(CURDIR)/debian/jmc 24 25 dh_clean 26 27 install: build 28 install: build install-prereq $(PYVERS:%=install-python%) 29 install-prereq: 28 30 dh_testdir 29 31 dh_testroot 30 dh_clean -k 31 dh_installdirs 32 dh_clean -k 32 33 33 # Create directory tree for package 34 install-python%: 35 # Force setuptools, but reset sys.argv[0] to 'setup.py' because setup.py files expect that. 36 python$* -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'__file__':f,'__name__':'__main__'})" install --no-compile --single-version-externally-managed --root $(CURDIR)/debian/${PACKAGE_NAME} 37 mv debian/${PACKAGE_NAME}/usr/lib/python$*/site-packages/${MODULE_NAME}-${DEB_UPSTREAM_VERSION}-py$*.egg-info debian/${PACKAGE_NAME}/usr/lib/python$*/site-packages/${MODULE_NAME}.egg-info 38 39 binary-arch: 34 40 35 cp -R $(CURDIR)/debian/jmc.conf $(CURDIR)/debian/jmc/etc/jabber/jmc.conf36 cp -R $(CURDIR)/debian/jmc-default $(CURDIR)/debian/jmc/etc/default/jmc37 cp -R $(CURDIR)/debian/jmc.sh $(CURDIR)/debian/jmc/usr/bin/jmc38 cp -R $(CURDIR)/src/* $(CURDIR)/debian/jmc/usr/share/jmc39 40 # Build architecture-independent files here.41 41 binary-indep: build install 42 dh_testdir 43 dh_testroot 44 dh_installchangelogs 45 dh_installdocs 46 # dh_installexamples 47 dh_install 48 # dh_installmenu 49 # dh_installdebconf 50 dh_installlogrotate 51 # dh_installemacsen 52 # dh_installpam 53 # dh_installmime 54 dh_installinit 55 # dh_installcron 56 # dh_installinfo 57 # dh_installman 58 dh_link 59 # dh_strip 60 # dh_compress 61 dh_fixperms 62 # dh_perl 63 dh_python /usr/share/jmc 64 # dh_makeshlibs 65 dh_installdeb 66 # dh_shlibdeps 67 dh_gencontrol 68 dh_md5sums 69 dh_builddeb 70 71 # Build architecture-dependent files here. 72 binary-arch: build install 73 # We have nothing to do by default. 42 dh_testdir -i 43 dh_testroot -i 44 dh_pycentral -i 45 dh_installdocs -i 46 dh_installdirs -i 47 dh_installexamples -i 48 dh_strip -i 49 dh_compress -i -X.py 50 dh_fixperms -i 51 : # Replace all '#!' calls to python with $(PYTHON) 52 : # and make them executable 53 for i in \ 54 `find debian/python-jmc/usr/bin -type f` \ 55 `find debian/python-jmc/usr/lib -type f`; \ 56 do \ 57 case "$$i" in *-[0-9].[0-9]) continue; esac; \ 58 sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \ 59 $$i > $$i.temp; \ 60 if cmp --quiet $$i $$i.temp; then \ 61 rm -f $$i.temp; \ 62 else \ 63 mv -f $$i.temp $$i; \ 64 chmod 755 $$i; \ 65 echo "fixed interpreter: $$i"; \ 66 fi; \ 67 done 68 dh_installdeb -i 69 dh_gencontrol -i 70 dh_md5sums -i 71 dh_builddeb -i 74 72 75 73 binary: binary-indep binary-arch 74 75 76 76 .PHONY: build clean binary-indep binary-arch binary install configure
