Cleanup...

This commit is contained in:
Gérald Colangelo
2014-09-04 20:58:23 +02:00
parent 6c085d52a7
commit ffbf663988
18 changed files with 0 additions and 358 deletions

1
debian/files vendored
View File

@@ -1 +0,0 @@
ospow-dnsbl-proxy_2.3_amd64.deb unknown extra

View File

@@ -1,48 +0,0 @@
dh_auto_configure
dh_auto_build
dh_auto_test
dh_prep
dh_installdirs
dh_auto_install
dh_install
dh_installdocs
dh_installchangelogs
dh_installexamples
dh_installman
dh_installcatalogs
dh_installcron
dh_installdebconf
dh_installemacsen
dh_installifupdown
dh_installinfo
dh_pysupport
dh_installinit
dh_installmenu
dh_installmime
dh_installmodules
dh_installlogcheck
dh_installlogrotate
dh_installpam
dh_installppp
dh_installudev
dh_installwm
dh_installxfonts
dh_installgsettings
dh_bugfiles
dh_ucf
dh_lintian
dh_gconf
dh_icons
dh_perl
dh_usrlocal
dh_link
dh_compress
dh_fixperms
dh_strip
dh_makeshlibs
dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dh_builddeb

View File

@@ -1,8 +0,0 @@
# Automatically added by dh_installinit
if [ -x "/etc/init.d/ospow-dnsbl-proxy" ]; then
if [ ! -e "/etc/init/ospow-dnsbl-proxy.conf" ]; then
update-rc.d ospow-dnsbl-proxy defaults >/dev/null
fi
invoke-rc.d ospow-dnsbl-proxy start || exit $?
fi
# End automatically added section

View File

@@ -1,11 +0,0 @@
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d ospow-dnsbl-proxy remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section

View File

@@ -1,5 +0,0 @@
# Automatically added by dh_installinit
if [ -x "/etc/init.d/ospow-dnsbl-proxy" ]; then
invoke-rc.d ospow-dnsbl-proxy stop || exit $?
fi
# End automatically added section

View File

@@ -1 +0,0 @@
misc:Depends=debconf (>= 0.5) | debconf-2.0

View File

@@ -1 +0,0 @@
/etc/init.d/ospow-dnsbl-proxy

View File

@@ -1,11 +0,0 @@
#!/bin/sh
# Source debconf library.
. /usr/share/debconf/confmodule
# Zone
db_reset dnsbl-proxy/zone
db_input high dnsbl-proxy/zone || true
db_go

View File

@@ -1,15 +0,0 @@
Package: ospow-dnsbl-proxy
Version: 2.3
Architecture: amd64
Maintainer: root <gcolangelo@ospow.com>
Installed-Size: 40
Depends: debconf (>= 0.5) | debconf-2.0
Section: unknown
Priority: extra
Homepage: http://ospow.com
Description: Ospow DNSBL Proxy Server
A lightweight, performant DNSBL Proxy Server written in C using libevent.
Implements:
_ A cache mechanism to avoid useless queries
_ Direct interrogation of DNSBL servers
_ TXT record to get where IP is listed:

View File

@@ -1,3 +0,0 @@
f1afcd98c46e319ac8b15a6c410a65e4 usr/share/doc/ospow-dnsbl-proxy/README.Debian
65f6569564bb4943c04ebdffd0a84bfb usr/share/doc/ospow-dnsbl-proxy/changelog.gz
92d2e00ff235a266b8e8d4e6a46e8432 usr/share/doc/ospow-dnsbl-proxy/copyright

View File

@@ -1,47 +0,0 @@
#!/bin/sh
# postinst script for ospow-dnsbl-proxy
#
# see: dh_installdeb(1)
set -e
. /usr/share/debconf/confmodule
db_get dnsbl-proxy/zone
zone=$RET
case "$1" in
configure)
if [ ! -f /etc/ospow/dnsbl-proxy.conf ] ; then
mkdir -p /etc/ospow/
cat /usr/share/doc/ospow-dnsbl-proxy/dnsbl-proxy.conf.tpl | sed \
-e "s/@@ZONE@@/$zone/" > /etc/ospow/dnsbl-proxy.conf;
else
echo "Config ever exists, skipping ...";
fi
exit 0
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_installinit
if [ -x "/etc/init.d/ospow-dnsbl-proxy" ]; then
if [ ! -e "/etc/init/ospow-dnsbl-proxy.conf" ]; then
update-rc.d ospow-dnsbl-proxy defaults >/dev/null
fi
invoke-rc.d ospow-dnsbl-proxy start || exit $?
fi
# End automatically added section
exit 0

View File

@@ -1,13 +0,0 @@
#!/bin/sh
set -e
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
update-rc.d ospow-dnsbl-proxy remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section

View File

@@ -1,7 +0,0 @@
#!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/ospow-dnsbl-proxy" ]; then
invoke-rc.d ospow-dnsbl-proxy stop || exit $?
fi
# End automatically added section

View File

@@ -1,4 +0,0 @@
Template: dnsbl-proxy/zone
Type: string
Default: rbl.<yourdomain>
Description: DNS Zone that dnsbl-proxy will serve RBL records

View File

@@ -1,129 +0,0 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: ospow-dnsbl-proxy
# Required-Start: $network $local_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <Enter a short description of the sortware>
# Description: <Enter a long description of the software>
# <...>
# <...>
### END INIT INFO
# Author: root <gcolangelo@ospow.com>
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Ospow DNSBL Proxy" # Introduce a short description here
NAME=dnsbl-proxy # Introduce the short server's name here
DAEMON=/usr/sbin/dnsbl-proxy # Introduce the server's location here
DAEMON_ARGS="" # Arguments to run the daemon with
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
[ -x $DAEMON ] || exit 0
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
#
# Function that starts the daemon/service
#
do_start()
{
$DAEMON # Add code here, if necessary, that waits for the process to be ready
}
#
# Function that stops the daemon/service
#
do_stop()
{
pid=$(pidof dnsbl-proxy)
if [ -n "$pid" ] ; then
kill $pid
kill -9 $pid
fi
}
#
# Function that sends a SIGHUP to the daemon/service
#
do_reload() {
#
# If the daemon can reload its configuration without
# restarting (for example, when it is sent a SIGHUP),
# then implement that here.
#
start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
return 0
}
case "$1" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
do_start
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_stop
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
status)
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;
#reload|force-reload)
#
# If do_reload() is not implemented then leave this commented out
# and leave 'force-reload' as an alias for 'restart'.
#
#log_daemon_msg "Reloading $DESC" "$NAME"
#do_reload
#log_end_msg $?
#;;
restart|force-reload)
#
# If the "reload" option is implemented then remove the
# 'force-reload' alias
#
log_daemon_msg "Restarting $DESC" "$NAME"
do_stop
case "$?" in
0|1)
do_start
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1 ;; # Old process is still running
*) log_end_msg 1 ;; # Failed to start
esac
;;
*)
# Failed to stop
log_end_msg 1
;;
esac
;;
*)
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
exit 3
;;
esac
:

View File

@@ -1,6 +0,0 @@
ospow-dnsbl-proxy for Debian
----------------------------
<possible notes regarding this package - if none, delete this file>
-- root <gcolangelo@ospow.com> Thu, 31 Jan 2013 19:11:47 +0100

View File

@@ -1,48 +0,0 @@
This work was packaged for Debian by:
Gérald COLANGELO <gcolangelo@ospow.com> on Thu, 31 Jan 2013 19:11:47 +0100
Upstream Author(s):
Gérald COLANGELO <gcolangelo@ospow.com>
Copyright:
<Copyright (C) 2013 Gérald COLANGELO>
License:
Redistribution and use in source and binary forms, with or without
modification, are permitted under the terms of the BSD License.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
On Debian systems, the complete text of the BSD License can be
found in "/usr/share/common-licenses/BSD".
The Debian packaging is:
Copyright (C) 2013 root <gcolangelo@ospow.com>
# Please chose a license for your packaging work. If the program you package
# uses a mainstream license, using the same license is the safest choice.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
# If you just want it to be GPL version 3, leave the following lines in.
and is licensed under the GPL version 3,
see "/usr/share/common-licenses/GPL-3".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.