Initial import debian/ into repository
authorNeutron Soutmun <neo.neutron@gmail.com>
Tue, 24 Feb 2009 20:36:03 +0000 (03:36 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Tue, 24 Feb 2009 20:36:03 +0000 (03:36 +0700)
18 files changed:
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/examples/config.php [new file with mode: 0644]
debian/examples/rahunas.conf [new file with mode: 0644]
debian/rahunas-weblogin.apache2.conf [new file with mode: 0644]
debian/rahunas-weblogin.docs [new file with mode: 0644]
debian/rahunas-weblogin.postinst [new file with mode: 0644]
debian/rahunas-weblogin.postrm [new file with mode: 0644]
debian/rahunas.default [new file with mode: 0644]
debian/rahunas.docs [new file with mode: 0644]
debian/rahunas.init [new file with mode: 0644]
debian/rahunas.logrotate [new file with mode: 0644]
debian/rahunas.postinst [new file with mode: 0644]
debian/rahunas.postrm [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/watch [new file with mode: 0644]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..1da89b6
--- /dev/null
@@ -0,0 +1,5 @@
+rahunas (0.1.1-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Neutron Soutmun <neo.neutron@gmail.com>  Wed, 03 Dec 2008 22:55:47 +0700
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..6082879
--- /dev/null
@@ -0,0 +1,42 @@
+Source: rahunas
+Section: net
+Priority: optional
+Maintainer: Neutron Soutmun <neo.neutron@gmail.com>
+Build-Depends: debhelper (>= 7), autotools-dev, autoconf, automake,
+ libgnet-dev (>= 2.0.8), libgda3-dev (>= 3.0.2)
+Standards-Version: 3.8.0
+Homepage: http://neutron.debianclub.com/rahunas
+
+Package: rahunas
+Architecture: any
+Depends: libgnet2.0-0 (>= 2.0.8), libgda3-sqlite (>= 3.0.2), iptables, ipset, 
+ iproute, bridge-utils, rahunas-config, ${shlibs:Depends}, 
+ ${misc:Depends}
+Description: Network Access Server based on IP Sets. 
+ RahuNAS is an open source Network Access Server (NAS) based on 
+ IP Sets (http://ipset.netfilter.org).
+ .
+ It suitable for the small to medium networks which the significant factor is
+ the performance. The RahuNAS provides the advantages of the ipset that the
+ IP packets flow through the netfilter and do the clients filtering at 
+ high speed and capable to match the clients' IP and MAC address or IP only.
+ .
+ It supports web based login at the most secure with SSL.
+ .
+ Authentication, Authorization and Accounting (AAA) is handled by your
+ favorite radius server.
+ .
+ Only support IPv4. (IPv6 is in the planning of ipset)
+ .
+ Note: the RahuNAS requires the IP sets with rahunas support module
+ (netfilter extension module) patches applied to the kernel.
+
+Package: rahunas-weblogin
+Architecture: all
+Depends: rahunas, freeradius, php5, php5-radius, 
+ php5-xmlrpc, php5-curl, php-pear, ucf (>= 0.28), ${misc:Depends}
+Description: Web base login for RahuNAS
+ The web base login writen in PHP with the multilingual (English and Thai)
+ support. It provides the login, logout and post login information page.
+ The web base login do request the authorization from the FreeRADIUS and 
+ interact with RahuNAS.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..3e51018
--- /dev/null
@@ -0,0 +1,29 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=384
+Upstream-Name: rahunas
+Upstream-Maintainer: Neutron Soutmun <neo.neutron@gmail.com>
+Upstream-Source: ftp://ftp://neutron.debianclub.com/rahunas/release
+
+Files: debian/*
+Copyright: Copyright 2008 Neutron Soutmun <neo.neutron@gmail.com>
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public License,
+ version 2, can be found in /usr/share/common-licenses/GPL-2
+
+Files: *
+Copyright: Copyright 2008 Neutron Soutmun <neo.neutron@gmail.com>
+                          Suriya Soutmun <darksolar@gmail.com>
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public License,
+ version 2, can be found in /usr/share/common-licenses/GPL-2
+
+Files: xmlrpc/*
+Copyright: Copyright 2006 Dov Grobgeld <dov.grobgeld@gmail.com>
+License: LGPL-2+
+ On Debian systems, the complete text of the GNU Lesser General Public License,
+ version 2, can be found in /usr/share/common-licenses/LGPL-2
+
+Files: lcfg/*
+Copyright: Copyright 2007 Paul Baecher
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public License,
+ version 2, can be found in /usr/share/common-licenses/GPL-2
diff --git a/debian/examples/config.php b/debian/examples/config.php
new file mode 100644 (file)
index 0000000..bccd9f6
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+$config = array(
+  "RADIUS_HOST" => "localhost",
+  "RADIUS_SECRET" => "testing123",
+  "RADIUS_ENCRYPT" => "CHAP_MD5",
+  "RADIUS_AUTH_PORT" => 0,
+  "RADIUS_ACCT_PORT" => 0,
+  "RAHUNAS_HOST" => "localhost",
+  "RAHUNAS_PORT" => "8123",
+  "NAS_IDENTIFIER" => "RahuNAS-01",
+  "NAS_IP_ADDRESS" => "172.30.0.1",
+  "NAS_LOGIN_HOST" => "172.30.0.1",
+  "NAS_LOGIN_PORT" => "8443",
+  "NAS_LOGIN_PROTO" => "https",
+  "NAS_PORT" => 1,
+  "NAS_LOGIN_TITLE" => "RahuNAS Network",
+  "DEFAULT_REDIRECT_URL" => "http://www.kku.ac.th",
+  "DEFAULT_LANGUAGE" => "Thai",
+  "UAM_TEMPLATE" => "rahunas"
+);
+?>
diff --git a/debian/examples/rahunas.conf b/debian/examples/rahunas.conf
new file mode 100644 (file)
index 0000000..db8a31b
--- /dev/null
@@ -0,0 +1,100 @@
+//////////////////////////////////////////////////////////
+// RahuNAS Configuration                                //
+// Author: Neutron Soutmun <neo.neutron@gmail.com>      //
+// Date: 2008-11-26                                     //
+//////////////////////////////////////////////////////////
+
+/////////////////////////
+// Daemon              //
+/////////////////////////
+
+//// XML-RPC Server hostname or IP address
+//// default: localhost
+// xml_serv_host = "localhost"
+
+//// XML-RPC Server port
+//// default: 8888
+// xml_serv_port = "8888"
+
+//// XML-RPC URL
+//// default: /xmlrpc_service.php
+// xml_serv_url = "/xmlrpc_service.php"
+
+//// Polling interval (seconds)
+//// default: 60
+// polling_interval = "60"
+
+//// Idle threshold
+//// default: 600 (600 seconds = 10 minutes)
+// idle_threshold = "600"
+
+//// Log file
+log_file = "/var/log/rahunas/rahunas.log"
+
+/////////////////////////
+// Start-Up            //
+/////////////////////////
+
+//// External Interface
+dev_wan = "eth0"
+
+//// Internal Interface
+dev_lan = "eth1"
+
+//// Bridging the External and Internal interface (Transparent Inline)
+bridge = "no"
+
+//// MASQUERADE (automatic source NAT) for the packets going outside (External)
+masquerade = "yes"
+
+//// RahuNAS Server's IP address or hostname
+server = "172.30.0.1"
+
+//// Clients IP 
+//// clients_range_start and clients_range_end are single ip, eg. 172.30.0.1.
+//// clients_network is network address/netmask, eg 172.30.0.0/22.
+////
+//// Note: The clients_network will overide the clients_range_start and 
+////       clients_range_end.
+
+clients_range_start = ""
+clients_range_end = ""
+clients_network = "172.30.0.0/22"
+
+//// Excluded IP address
+//// space separated IP address, it can be single ip or network address/netmask
+//// example: excluded = "172.30.0.100 202.28.92.0/24"
+excluded = ""
+
+//// Ignore MAC address
+//// no  - RahuNAS connected to the clients network locally and can grap MAC.
+//// yes - RahuNAS can not grap MAC, use only IP for identification. (Remote/L3)
+ignore_mac = "no"
+
+//// Enable bandwidth shaping using IMQ and iproute2
+bandwidth_shape_imq = "yes"
+
+//// Enable DHCP forwarding
+//// yes - The DHCP server is not setup on RahuNAS box, forwarding the request 
+////       out of the box.
+forward_dhcp = "no"
+
+//// Enable DNS forwarding 
+//// yes - The DNS server is not setup on RahuNAS box, forwarding the request 
+////       out of the box.
+forward_dns = "no"
+
+//// Enable SQUID Cache/Proxy 
+//// proxy_port = "0" to disable.
+proxy_port = "0"
+proxy_host = "localhost"
+
+//// Enable transparent proxy
+//// Do the http request interception and redirect to the proxy_host:proxy_port
+transparent_proxy = "no"
+
+//// Enable SSH - Secure Shell
+ssh = "yes"
+
+//// Enable Bittorrent blocking
+bittorrent_block = "no"
diff --git a/debian/rahunas-weblogin.apache2.conf b/debian/rahunas-weblogin.apache2.conf
new file mode 100644 (file)
index 0000000..c3484a3
--- /dev/null
@@ -0,0 +1,56 @@
+Listen 8888
+<VirtualHost *:8888>
+       ServerAdmin webmaster@localhost
+       
+       DocumentRoot /usr/share/rahunas/
+       <Directory />
+               Options FollowSymLinks
+               AllowOverride None
+       </Directory>
+       <Directory /usr/share/rahunas/>
+               Options Indexes FollowSymLinks MultiViews
+               AllowOverride All
+               Order allow,deny
+               allow from all
+       </Directory>
+
+       ErrorLog /var/log/apache2/rahunas_error.log
+       LogLevel warn
+       CustomLog /var/log/apache2/rahunas_access.log combined
+
+</VirtualHost>
+
+<IfModule mod_ssl.c>
+Listen 8443
+<VirtualHost *:8443>
+       ServerAdmin webmaster@localhost
+       
+       DocumentRoot /usr/share/rahunas/
+       <Directory />
+               Options FollowSymLinks
+               AllowOverride None
+       </Directory>
+       <Directory /usr/share/rahunas/>
+               Options Indexes FollowSymLinks MultiViews
+               AllowOverride All
+               Order allow,deny
+               allow from all
+       </Directory>
+
+       ErrorLog /var/log/apache2/rahunas_error.log
+       LogLevel warn
+       CustomLog /var/log/apache2/rahunas_ssl_access.log combined
+
+       SSLEngine on
+       SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
+       SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
+
+       <FilesMatch "\.(cgi|shtml|phtml|php)$">
+               SSLOptions +StdEnvVars
+       </FilesMatch>
+       BrowserMatch ".*MSIE.*" \
+               nokeepalive ssl-unclean-shutdown \
+               downgrade-1.0 force-response-1.0
+
+</VirtualHost>
+</IfModule>
diff --git a/debian/rahunas-weblogin.docs b/debian/rahunas-weblogin.docs
new file mode 100644 (file)
index 0000000..e871a25
--- /dev/null
@@ -0,0 +1 @@
+debian/rahunas-weblogin.apache2.conf
diff --git a/debian/rahunas-weblogin.postinst b/debian/rahunas-weblogin.postinst
new file mode 100644 (file)
index 0000000..758d779
--- /dev/null
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+set -e
+
+#
+# Skip, if we are not in "configure" state
+#
+if [ "$1" != "configure" ]; then
+  exit 0
+fi
+
+ucf /usr/share/doc/rahunas-weblogin/rahunas-weblogin.apache2.conf \
+  /etc/rahunas/apache2.conf
+
+if which a2enmod > /dev/null 2>&1; then
+  a2enmod ssl > /dev/null 2>&1
+  a2enmod rewrite > /dev/null 2>&1
+fi
+
+if [ -d "/etc/apache2/conf.d" ]; then
+  if [ ! -e "/etc/apache2/conf.d/rahunas.conf" ]; then
+    ln -s /etc/rahunas/apache2.conf /etc/apache2/conf.d/rahunas.conf
+  fi
+  invoke-rc.d apache2 reload || true;
+fi
+
+if [ ! -f /usr/share/rahunas/config.php ]; then
+  if [ -f "/etc/rahunas/config.php" ]; then 
+    ln -s /etc/rahunas/config.php /usr/share/rahunas/config.php 
+  fi
+fi
+
+if which pear > /dev/null 2>&1; then
+  echo "Installing required PEAR packages.."
+  echo "Installing Auth_RADIUS package"
+  pear install Auth_RADIUS > /dev/null 2>&1 || true
+  echo "Installing Crypt_CHAP package"
+  pear install Crypt_CHAP > /dev/null 2>&1 || true
+  echo "Installing Cache_Lite package"
+  pear install Cache_Lite > /dev/null 2>&1 || true
+  echo "Installing XML_RPC2 package"
+  pear install XML_RPC2 > /dev/null 2>&1 || true
+  echo "Done.."
+fi
+
+#DEBHELPER#
+exit 0
diff --git a/debian/rahunas-weblogin.postrm b/debian/rahunas-weblogin.postrm
new file mode 100644 (file)
index 0000000..fed82b0
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "remove" ] && [ "$1" != "purge" ]; then
+  exit 0
+fi
+
+## Source debconf library
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+#
+# Remove or Purge the whole package
+#
+
+common_remove() {
+  if [ -d "/etc/apache2/conf.d" ]; then
+    if [ -L "/etc/apache2/conf.d/rahunas.conf" ]; then
+      rm /etc/apache2/conf.d/rahunas.conf
+    fi
+    invoke-rc.d apache2 reload || true
+  fi
+
+  if [ -L "/usr/share/rahunas/config.php" ]; then
+    rm /usr/share/rahunas/config.php
+  fi
+
+  if which pear > /dev/null 2>&1; then
+    echo "Uninstalling required PEAR packages.."
+    echo "Uninstalling XML_RPC2 package"
+    pear uninstall XML_RPC2 > /dev/null 2>&1 || true
+    echo "Uninstalling Cache_Lite package"
+    pear uninstall Cache_Lite > /dev/null 2>&1 || true
+    echo "Uninstalling Crypt_CHAP package"
+    pear uninstall Crypt_CHAP > /dev/null 2>&1 || true
+    echo "Uninstalling Auth_RADIUS package"
+    pear uninstall Auth_RADIUS > /dev/null 2>&1 || true
+    echo "Done .."
+  fi
+}
+
+case "$1" in
+purge)
+  if which ucf >/dev/null 2>&1; then
+    ucf --purge /etc/rahunas/apache2.conf
+  fi
+
+  rm -f /etc/rahunas/apache2.conf
+
+  common_remove
+  ;;
+
+remove)
+  common_remove
+  ;;
+esac
+
+#DEBHELPER#
+exit 0
diff --git a/debian/rahunas.default b/debian/rahunas.default
new file mode 100644 (file)
index 0000000..aed7022
--- /dev/null
@@ -0,0 +1,8 @@
+# This file controls the behaviour of the rahunas init script.  It
+# will be parsed as a shell script.
+
+# Set to "yes" to have the init script start rahunas.
+RUN_DAEMON=no
+
+# RahuNAS config file
+RAHUNAS_CONFIG=/etc/rahunas/rahunas.conf
diff --git a/debian/rahunas.docs b/debian/rahunas.docs
new file mode 100644 (file)
index 0000000..5502ed8
--- /dev/null
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO
diff --git a/debian/rahunas.init b/debian/rahunas.init
new file mode 100644 (file)
index 0000000..cfad16d
--- /dev/null
@@ -0,0 +1,76 @@
+#! /bin/sh
+
+### BEGIN INIT INFO
+# Provides:          rahunas
+# Required-Start:    $syslog
+# Required-Stop:     $syslog apache2
+# Should-Start:      $local_fs $network apache2
+# Should-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Handles the rahunas daemon
+# Description:       Starts, stops the rahunas daemon. 
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/bin/rahunasd
+INIT=/etc/default/rahunas
+FIREWALL=/etc/rahunas/firewall.sh
+NAME=rahunasd
+DESC="RahuNAS: Rahu Network Access Server"
+
+# This value is overriden in /etc/default/rahunas if it exists
+RUN_DAEMON=no
+
+test -f $DAEMON || exit 0
+test -f $FIREWALL || exit 0
+
+set -e
+
+test -f $INIT || exit 0 
+. $INIT 
+
+case "$1" in
+  start)
+       echo -n "Starting $DESC: "
+
+  $FIREWALL start
+
+       if [ "$RUN_DAEMON" = "yes" ]; then
+               start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
+               --exec $DAEMON
+               echo done
+       else
+               echo disabled 
+       fi
+       ;;
+  stop)
+       echo -n "Stopping $DESC: "
+
+       start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/$NAME.pid \
+               --exec $DAEMON
+       echo done 
+       $FIREWALL stop
+       ;;
+  restart|force-reload)
+       echo -n "Restarting $DESC: "
+
+       start-stop-daemon --stop --oknodo --quiet --pidfile \
+               /var/run/$NAME.pid --exec $DAEMON
+       sleep 1
+
+       $FIREWALL restart
+
+       start-stop-daemon --start --quiet --pidfile \
+               /var/run/$NAME.pid --exec $DAEMON
+       echo "$NAME."
+       ;;
+  *)
+       N=/etc/init.d/$NAME
+       echo "Usage: $N {start|stop|restart|force-reload}" >&2
+       exit 1
+       ;;
+esac
+
+exit 0
diff --git a/debian/rahunas.logrotate b/debian/rahunas.logrotate
new file mode 100644 (file)
index 0000000..a74a0e4
--- /dev/null
@@ -0,0 +1,13 @@
+/var/log/rahunas/*.log {
+  weekly
+  missingok
+  rotate 13
+  compress
+  delaycompress
+  notifempty
+  create 640 root adm
+  sharedscripts
+  postrotate
+    /etc/init.d/rahunas restart > /dev/null
+  endscript
+}
diff --git a/debian/rahunas.postinst b/debian/rahunas.postinst
new file mode 100644 (file)
index 0000000..d5f5489
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+#
+# Skip, if we are not in "configure" state
+#
+if [ "$1" != "configure" ]; then
+  exit 0
+fi
+
+test -d /var/log/rahunas || mkdir /var/log/rahunas
+test -f /etc/rahunas/rahunas.conf || \
+  cp /usr/share/doc/rahunas/rahunas.conf.example /etc/rahunas/rahunas.conf 
+
+#DEBHELPER#
+exit 0
diff --git a/debian/rahunas.postrm b/debian/rahunas.postrm
new file mode 100644 (file)
index 0000000..cef628c
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "remove" ] && [ "$1" != "purge" ]; then
+  exit 0
+fi
+
+case "$1" in
+  purge)
+    test -d "/var/log/rahunas" && rm -rf /var/log/rahunas
+    ;;
+  remove)
+    ;;
+esac
+
+#DEBHELPER#
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..0727c40
--- /dev/null
@@ -0,0 +1,132 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+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
+
+TDIR:=debian/rahunas
+WEBSHAREDIR:=${TDIR}-weblogin/usr/share
+SITEDIR:=${WEBSHAREDIR}/rahunas
+
+config.status:
+       dh_testdir
+       # Add here commands to configure the package.
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+       cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+       cp -f /usr/share/misc/config.guess config.guess
+endif
+       ./autogen.sh
+       ./configure $(CROSS) --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: config.status 
+
+       $(MAKE)
+       touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp: config.status 
+
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-arch-stamp build-indep-stamp 
+
+
+       [ ! -f Makefile ] || $(MAKE) distclean
+
+       find -name 'Makefile.in' -exec rm -f {} \;
+       rm -f aclocal.m4 configure config.sub config.guess depcomp install-sh missing
+       rm -rf autom4te.cache
+
+       dh_clean 
+
+install: install-indep install-arch
+
+install-indep:
+       dh_testdir
+       dh_testroot
+       dh_prep -i 
+       dh_installdirs -i
+
+       # Weblogin 
+       mkdir -p $(WEBSHAREDIR) 
+       cp -pr weblogin $(SITEDIR)
+       rm -f $(SITEDIR)/Makefile*
+       rm -f $(SITEDIR)/config.php
+       find $(SITEDIR)/ -exec chown root:www-data {} \;
+       find $(SITEDIR)/ -type f -exec chmod 640 {} \; 
+       find $(SITEDIR)/ -type d -exec chmod 750 {} \; 
+
+       dh_install -i
+
+install-arch:
+       dh_testdir
+       dh_testroot
+       dh_prep -s 
+       dh_installdirs -s
+
+       $(MAKE) DESTDIR=$(CURDIR)/debian/rahunas install
+
+       dh_install -s
+
+       install -D -m 0750 -o root -g root example/firewall.sh debian/rahunas/etc/rahunas/firewall.sh
+       install -D -m 0750 -o root -g root example/bandwidth.sh debian/rahunas/etc/rahunas/bandwidth.sh
+
+binary-common:
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs ChangeLog
+       dh_installdocs
+       dh_installexamples
+       dh_installdebconf
+       dh_installlogrotate
+       dh_installinit -R -- defaults 92 08
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary-indep: build-indep install-indep
+       $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+binary-arch: build-arch install-arch
+       $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch 
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..2768698
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+opts=pasv ftp://neutron.debianclub.com/rahunas/release/rahunas-(.*)\.tar\.gz debian uupdate