debian/0000775000000000000000000000000012265312100007160 5ustar debian/arpon.default0000664000000000000000000000076011433263616011665 0ustar # Defaults for arpon initscript # sourced by /etc/init.d/arpon # installed at /etc/default/arpon by the maintainer scripts # You must choose between static ARP inspection (SARPI) and # dynamic ARP inspection (DARPI) # # For SARPI uncomment the following line (please edit also /etc/arpon.sarpi) # DAEMON_OPTS="-q -f /var/log/arpon/arpon.log -g -s" # For DARPI uncomment the following line # DAEMON_OPTS="-q -f /var/log/arpon/arpon.log -g -d" # Modify to RUN="yes" when you are ready RUN="no" debian/copyright0000664000000000000000000000244011433263616011130 0ustar This package was debianized by Giuseppe Iuculano on Tue, 29 Jul 2008 23:31:41 +0200. It was downloaded from http://arpon.sourceforge.net Upstream Author: Andrea Di Pasquale Copyright: 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. The Debian packaging is © 2008, Giuseppe Iuculano and is licensed under the BSD debian/README.Debian0000664000000000000000000000071311433263616011237 0ustar arpon for Debian ---------------- ArpON is a versatile an anti arp poisoning daemon. At this moment there are two arp inspection mode: - SARPI (Static Arp Inspection) - DARPI (Dynamic Arp Inspection) If you use a static ip address, you should use SARPI. If you use dhcp to retrive your ip address, you should use DARPI Choose your inspection type, and edit /etc/default/arpon -- Giuseppe Iuculano Tue, 29 Jul 2008 23:31:41 +0200 debian/postrm0000664000000000000000000000171311433263616010446 0ustar #!/bin/sh # postrm script for arpon # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge) rm -f /var/log/arpon/* ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/init.d0000664000000000000000000001704311433263616010312 0ustar #!/bin/sh # ### BEGIN INIT INFO # Provides: arpon # Required-Start: $network $local_fs $remote_fs # Required-Stop: $remote_fs $local_fs # Should-Start: $named # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start arpon at boot time ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/arpon NAME=arpon DESC="anti ARP poisoning daemon" LOGDIR=/var/log/arpon # Log directory to use PIDFILE=/var/run/$NAME.pid test -x $DAEMON || exit 0 . /lib/lsb/init-functions # Default options, these can be overriden by the information # at /etc/default/arpon DAEMON_OPTS="-d -l /var/log/arpon/arpon.log" # Additional options given to the server DIETIME=4 # Time to wait for the server to die, in seconds # If this value is set too low you might not # let some servers to die gracefully and # 'restart' will not work #STARTTIME=2 # Time to wait for the server to start, in seconds # If this value is set each time the server is # started (on start or restart) the script will # stall to try to determine if it is running # If it is not set and the server takes time # to setup a pid file the log message might # be a false positive (says it did not start # when it actually did) LOGFILE=$LOGDIR/$NAME.log # Server logfile #DAEMONUSER=arpon # Users to run the daemons as. If this value # is set start-stop-daemon will chuid the server # Include defaults if available if [ -f /etc/default/$NAME ] ; then . /etc/default/$NAME fi # Use this if you want the user to explicitly set 'RUN' in # /etc/default/ if [ "x$RUN" != "xyes" ] ; then log_failure_msg "$NAME disabled, please adjust the configuration to your needs " log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it." exit 0 fi set -e running_pid() { # Check if a given process pid's cmdline matches a given name pid=$1 name=$2 [ -z "$pid" ] && return 1 [ ! -d /proc/$pid ] && return 1 cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` # Is this the expected server [ "$cmd" != "$name" ] && return 1 return 0 } running() { # Check if the process is running looking at /proc # (works for all users) # No pidfile, probably no daemon present [ ! -f "$PIDFILE" ] && return 1 pid=`cat $PIDFILE` running_pid $pid $DAEMON || return 1 return 0 } start_server() { # Start the process using the wrapper if [ -z "$DAEMONUSER" ] ; then start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON -- $DAEMON_OPTS # errcode=$? else # if we are using a daemonuser then change the user id start-stop-daemon --start --quiet --pidfile $PIDFILE \ --chuid $DAEMONUSER \ --exec $DAEMON -- $DAEMON_OPTS errcode=$? fi #return $errcode if running ; then return 0 fi } stop_server() { # Stop the process using the wrapper if [ -z "$DAEMONUSER" ] ; then killproc -p $PIDFILE $DAEMON errcode=$? else # if we are using a daemonuser then look for process that match start-stop-daemon --stop --quiet --pidfile $PIDFILE \ --user $DAEMONUSER \ --exec $DAEMON errcode=$? fi return $errcode } reload_server() { [ ! -f "$PIDFILE" ] && return 1 pid=pidofproc $PIDFILE # This is the daemon's pid # Send a SIGHUP kill -1 $pid return $? } force_stop() { # Force the process to die killing it manually [ ! -e "$PIDFILE" ] && return if running ; then kill -15 $pid # Is it really dead? sleep "$DIETIME"s if running ; then kill -9 $pid sleep "$DIETIME"s if running ; then echo "Cannot kill $NAME (pid=$pid)!" exit 1 fi fi fi rm -f $PIDFILE } case "$1" in start) log_daemon_msg "Starting $DESC " "$NAME" # Check if it's running first if running ; then log_progress_msg "apparently already running" log_end_msg 0 exit 0 fi if start_server ; then # NOTE: Some servers might die some time after they start, # this code will detect this issue if STARTTIME is set # to a reasonable value [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time if running ; then # It's ok, the server started and is running log_end_msg 0 else # It is not running after we did start log_end_msg 1 fi else # Either we could not start it log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" if running ; then # Only stop the server if we see it running errcode=0 stop_server || errcode=$? log_end_msg $errcode else # If it's not running don't do anything log_progress_msg "apparently not running" log_end_msg 0 exit 0 fi ;; force-stop) # First try to stop gracefully the program $0 stop if running; then # If it's still running try to kill it more forcefully log_daemon_msg "Stopping (force) $DESC" "$NAME" errcode=0 force_stop || errcode=$? log_end_msg $errcode fi ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" errcode=0 stop_server || errcode=$? # Wait some sensible amount, some server need this [ -n "$DIETIME" ] && sleep $DIETIME start_server || errcode=$? [ -n "$STARTTIME" ] && sleep $STARTTIME running || errcode=$? log_end_msg $errcode ;; status) log_daemon_msg "Checking status of $DESC" "$NAME" if running ; then log_progress_msg "running" log_end_msg 0 else log_progress_msg "apparently not running" log_end_msg 1 exit 1 fi ;; # Use this if the daemon cannot reload reload) log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" log_warning_msg "cannot re-read the config file (use restart)." ;; # And this if it cann #reload) # # If the daemon can reload its config files on the fly # for example by sending it SIGHUP, do it here. # # If the daemon responds to changes in its config file # directly anyway, make this a do-nothing entry. # # log_daemon_msg "Reloading $DESC configuration files" "$NAME" # if running ; then # reload_server # if ! running ; then # Process died after we tried to reload # log_progress_msg "died on reload" # log_end_msg 1 # exit 1 # fi # else # log_progress_msg "server is not running" # log_end_msg 1 # exit 1 # fi #;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/changelog0000664000000000000000000000376312265312100011043 0ustar arpon (2.0-2.1ubuntu1) trusty; urgency=low * Handle multiarch libnet1-dev, too, resolving FTBFS. (Closes: #718148) (LP: #1229530) -- Daniel T Chen Tue, 14 Jan 2014 14:43:14 -0500 arpon (2.0-2.1) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS: Libpthread not found!": add patch from Ubuntu / Steve Langasek, Andreas Moog, Daniel T Chen: - debian/patches/fix_multiarch.patch: multiarch libpcap (LP: #747889, #831092) (Closes: #634578, #620459) -- gregor herrmann Fri, 04 Nov 2011 00:25:54 +0100 arpon (2.0-2) unstable; urgency=low * [9ce1735] Fix the default configuration /etc/default/arpon (Closes: #592310) - thanks to Luca Bruno * [96a4ebf] Uncomment examples in /etc/arpon.sarpi -- Giuseppe Iuculano Thu, 19 Aug 2010 19:18:09 +0200 arpon (2.0-1) unstable; urgency=low * [26180e8] Switch to quilt * [3d1be31] Imported Upstream version 2.0 * [49351eb] Switch to dpkg-source 3.0 (quilt) format * [aeb7386] Bump to debhelper 7 compatibility * [e3882e9] added cmake, lsb-release in Build-Depends * [b598014] Use new cmake build system * [6a7cc92] Use dh_prep * [670ccab] updated copyright file * [fba9537] Install binary in usr/sbin * [f197a87] debian/init.d: Added $remote_fs in Required-Start and Required-Stop * [bcd8d8c] updated copyright file * [6bc5b28] Bump to standard-version 3.9.1, no changes needed * [e14a181] Updated my email address -- Giuseppe Iuculano Wed, 04 Aug 2010 13:29:45 +0200 arpon (1.90-1) unstable; urgency=low * New upstream release * debian/rules: use new make debian target * debian/docs: Added AUTHORS * Added debian/patches/02_fix_hypen.dpatch to fix hyphen-used-as-minus-sign -- Giuseppe Iuculano Fri, 17 Oct 2008 20:01:06 +0200 arpon (1.50-1) unstable; urgency=low * Initial release (Closes: #492922) -- Giuseppe Iuculano Tue, 19 Aug 2008 14:11:26 +0200 debian/dirs0000664000000000000000000000006011433263616010055 0ustar usr/sbin var/log/arpon usr/share/man/man8/ etc/ debian/docs0000664000000000000000000000001611433263616010045 0ustar AUTHORS doc/* debian/patches/0000775000000000000000000000000012265311505010617 5ustar debian/patches/01_fix_path.patch0000664000000000000000000000062711433263616013754 0ustar Author: Giuseppe Iuculano Description: fix some path and use libdumbnet --- a/Makefile +++ b/Makefile @@ -53,8 +53,8 @@ clean: rm -f $(EXEC) install: - install $(EXEC) $(DESTDIR)/sbin - install $(MAN) $(DESTDIR)/usr/share/man/man8/ + install -D $(EXEC) $(DESTDIR)/usr/sbin/$(EXEC) + install -D $(MAN) $(DESTDIR)/usr/share/man/$(MAN) uninstall: rm -f $(DESTDIR)/sbin/$(EXEC) debian/patches/install.patch0000664000000000000000000000060211433263616013311 0ustar Fix install path --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ SOURCE = src/arpon.c -EXEC = src/arpon +EXEC = debian/build/src/arpon EXEC_FILE = arpon MAN = man8/arpon.8 FILE = etc/arpon.sarpi @@ -70,7 +70,7 @@ clean: rm -f $(EXEC) install: - cp $(EXEC) $(DESTDIR)/sbin + cp $(EXEC) $(DESTDIR)/usr/sbin/ cp $(FILE) $(DESTDIR)/etc cp $(MAN) $(DESTDIR)/usr/share/man/man8/ debian/patches/02_fix_hypen.patch0000664000000000000000000000111211433263616014132 0ustar Author: Giuseppe Iuculano Description: Fix hypen. --- a/man8/arpon.8 +++ b/man8/arpon.8 @@ -560,7 +560,7 @@ Prints help summary page. \&With 0 nice (default), daemon mode, 2 interfaces, en0 with Dynamic \&Arp Inspection, en1 with Static Arp Inspection and 2 logging files: \& -\&# arpon -d -f darpi.log -g -i eth0 -z 100 -y -f sarpi.log -g -i eth1 -u 10 -s +\&# arpon \-d \-f darpi.log \-g \-i eth0 \-z 100 \-y \-f sarpi.log \-g \-i eth1 \-u 10 \-s \& \& [09/05/2008 - 18:42:13 CEST] Task is forking to background, using /var/run/arpon.pid pid file... \& debian/patches/series0000664000000000000000000000006411654620415012040 0ustar install.patch arpon.sarpi.patch fix_multiarch.patch debian/patches/arpon.sarpi.patch0000664000000000000000000000035611433263616014105 0ustar --- a/etc/arpon.sarpi +++ b/etc/arpon.sarpi @@ -2,9 +2,9 @@ # # Gw - 192.168.1.1 00:25:53:29:f6:69 + #192.168.1.1 00:25:53:29:f6:69 # Spyro virtual - 172.16.159.1 0:50:56:c0:0:8 + #172.16.159.1 0:50:56:c0:0:8 # debian/patches/fix_multiarch.patch0000664000000000000000000000624512265311505014505 0ustar Author: Steve Langasek Origin: Ubuntu, https://bugs.launchpad.net/ubuntu/+source/arpon/+bug/747889/+attachment/1966748/+files/arpon-747889.diff Bug-Debian: http://bugs.debian.org/620459, http://bugs.debian.org/634578 Bug-Ubuntu: https://launchpad.net/bugs/747889 Forwarded: to author email Last-Update: <2011-04-02> Index: arpon-2.0/cmake_modules/FindPthread.cmake =================================================================== --- arpon-2.0.orig/cmake_modules/FindPthread.cmake 2010-05-28 16:37:07.000000000 -0400 +++ arpon-2.0/cmake_modules/FindPthread.cmake 2014-01-14 14:36:27.000000000 -0500 @@ -16,7 +16,7 @@ find_library(PTHREAD_LIBRARY NAMES ${libpthread} PATH ${CMAKE_LIBRARY_PATH}) -if(PTHREAD_INCLUDE_DIR AND PTHREAD_LIB_DIR AND PTHREAD_LIBRARY ) +if(PTHREAD_INCLUDE_DIR AND PTHREAD_LIBRARY ) message(STATUS "Found Libphtread.") if(NOT ${INCLUDE_DIR} MATCHES ${PTHREAD_INCLUDE_DIR}) @@ -24,7 +24,7 @@ set(INCLUDE_DIR "${INCLUDE_DIR} ${PTHREAD_INCLUDE_DIR}") endif(NOT ${INCLUDE_DIR} MATCHES ${PTHREAD_INCLUDE_DIR}) - if(NOT ${LIB_DIR} MATCHES ${PTHREAD_LIB_DIR}) + if(PTHREAD_LIB_DIR AND NOT ${LIB_DIR} MATCHES ${PTHREAD_LIB_DIR}) link_directories(${PTHREAD_LIB_DIR}) set(LIB_DIR "${LIB_DIR} ${PTHREAD_LIB_DIR}") endif(NOT ${LIB_DIR} MATCHES ${PTHREAD_LIB_DIR}) Index: arpon-2.0/cmake_modules/FindPCAP.cmake =================================================================== --- arpon-2.0.orig/cmake_modules/FindPCAP.cmake 2010-05-28 16:37:07.000000000 -0400 +++ arpon-2.0/cmake_modules/FindPCAP.cmake 2014-01-14 14:36:27.000000000 -0500 @@ -16,7 +16,7 @@ find_library(PCAP_LIBRARY NAMES ${libpcap} PATH ${CMAKE_LIBRARY_PATH}) -if(PCAP_INCLUDE_DIR AND PCAP_LIB_DIR AND PCAP_LIBRARY ) +if(PCAP_INCLUDE_DIR AND PCAP_LIBRARY ) message(STATUS "Found Libpcap.") if(NOT ${INCLUDE_DIR} MATCHES ${PCAP_INCLUDE_DIR}) @@ -24,7 +24,7 @@ set(INCLUDE_DIR "${INCLUDE_DIR} ${PCAP_INCLUDE_DIR}") endif(NOT ${INCLUDE_DIR} MATCHES ${PCAP_INCLUDE_DIR}) - if(NOT ${LIB_DIR} MATCHES ${PCAP_LIB_DIR}) + if(PCAP_LIB_DIR AND NOT ${LIB_DIR} MATCHES ${PCAP_LIB_DIR}) link_directories(${PCAP_LIB_DIR}) set(LIB_DIR "${LIB_DIR} ${PCAP_LIB_DIR}") endif(NOT ${LIB_DIR} MATCHES ${PCAP_LIB_DIR}) Index: arpon-2.0/cmake_modules/FindNET.cmake =================================================================== --- arpon-2.0.orig/cmake_modules/FindNET.cmake 2010-05-28 16:37:07.000000000 -0400 +++ arpon-2.0/cmake_modules/FindNET.cmake 2014-01-14 14:43:00.310262563 -0500 @@ -16,7 +16,7 @@ find_library(LIBNET_LIBRARY NAMES ${libnet} PATH ${CMAKE_LIBRARY_PATH}) -if(LIBNET_INCLUDE_DIR AND LIBNET_LIB_DIR AND LIBNET_LIBRARY ) +if(LIBNET_INCLUDE_DIR AND LIBNET_LIBRARY ) message(STATUS "Found Libnet.") if(NOT ${INCLUDE_DIR} MATCHES ${LIBNET_INCLUDE_DIR}) @@ -24,7 +24,7 @@ include_directories(${LIBNET_INCLUDE_DIR}) endif(NOT ${INCLUDE_DIR} MATCHES ${LIBNET_INCLUDE_DIR}) - if(NOT ${LIB_DIR} MATCHES ${LIBNET_LIB_DIR}) + if(LIBNET_LIB_DIR AND NOT ${LIB_DIR} MATCHES ${LIBNET_LIB_DIR}) link_directories(${LIBNET_LIB_DIR}) set(LIB_DIR "${LIB_DIR} ${LIBNET_LIB_DIR}") endif(NOT ${LIB_DIR} MATCHES ${LIBNET_LIB_DIR}) debian/watch0000664000000000000000000000006311433263616010225 0ustar version=3 http://sf.net/arpon/ArpON-(.*)\.tar\.gz debian/control0000664000000000000000000000235312265311617010602 0ustar Source: arpon Section: net Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Giuseppe Iuculano Build-Depends: debhelper (>= 7), libnet1-dev, libpcap-dev, libdumbnet-dev, cmake, lsb-release Standards-Version: 3.9.1 Homepage: http://arpon.sourceforge.net Package: arpon Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base Description: versatile anti ARP poisoning daemon ArpON (Arp handler inspectiON) is a portable handler daemon with some nice tools to handle all ARP aspects. It makes Arp a bit safer. This is possible using two kinds of anti Arp Poisoning techniques, the first is based on SARPI or "Static Arp Inspection", the second on DARPI or "Dynamic Arp Inspection" approach. . Features of ArpON include: * Detects and blocks ARP Poisoning/Spoofing attacks in statically configured networks (SARPI) * Detects and blocks ARP Poisoning/Spoofing attacks in dynamically configured (DHCP) networks (DARPI) * Detects and blocks unidirectional and bidirectional ARP attacks * Easily configurable via command line switches * Works in userspace * Can be a passive sniffer and capture all inbound/outbound ARP packets debian/source/0000775000000000000000000000000011433263616010475 5ustar debian/source/format0000664000000000000000000000001411433263616011703 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211433263616010373 0ustar 7 debian/rules0000775000000000000000000000466011433263616010263 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) else CROSS= --build $(DEB_BUILD_GNU_TYPE) endif ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS_RELEASE = -O0 -g -DNDEBUG $(CFLAGS) CFLAGS_DEBUG = -O0 -g $(CFLAGS) else CFLAGS_RELEASE = -O2 -g -DNDEBUG $(CFLAGS) CFLAGS_DEBUG = -O2 -g $(CFLAGS) endif BUILD_TYPE = Release ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) BUILD_TYPE = Debug endif ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif BUILD_FLAGS = -DCMAKE_INSTALL_PREFIX=/usr -DRESOURCEDIR=/usr/share/arpon -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \ -DCMAKE_C_FLAGS_RELEASE="$(CFLAGS_RELEASE)" -DCMAKE_C_FLAGS_DEBUG="$(CFLAGS_DEBUG)" ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) BUILD_FLAGS += -DCMAKE_SYSTEM_NAME=$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS) \ -DCMAKE_SYSTEM_PROCESSOR=$(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) \ -DCMAKE_C_COMPILER=$(DEB_BUILD_GNU_TYPE)-gcc endif CFLAGS += -Wall -Werror debian/build/CMakeCache.txt: mkdir -p debian/build cd $(CURDIR)/debian/build && \ cmake $(BUILD_FLAGS) ../.. debian/build: debian/build/CMakeCache.txt build: build-stamp build-stamp: debian/build dh_testdir $(MAKE) -C debian/build CFLAGS="$(CFLAGS)" $(MAKEFLAGS) touch $@ clean: dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || $(MAKE) clean rm -rf debian/build/ dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) DESTDIR=$(CURDIR)/debian/arpon install # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs CHANGELOG dh_installdocs dh_installexamples dh_install dh_installlogrotate dh_installinit dh_installman dh_link dh_strip dh_compress dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/arpon.logrotate0000664000000000000000000000057011433263616012240 0ustar /var/log/arpon/arpon.log { weekly missingok rotate 7 sharedscripts postrotate if [ -e /var/run/arpon.pid ]; then invoke-rc.d --quiet arpon reload > /dev/null sleep 10 fi endscript compress notifempty create 640 root root }