Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
bfb2d6b
Initial debian packet upload
fdurand Apr 16, 2012
0f2183d
got rid of unuseful code
obilodeau Apr 17, 2012
ef9f915
installer.pl detects debian (and cleaned it up a bit)
obilodeau Apr 17, 2012
a7b3f14
dropped irrelevant comment
obilodeau Apr 17, 2012
f5f3375
added freeradius as a PacketFence daemon
obilodeau Apr 17, 2012
755ba3c
improved consistency between daemon and binaries in pf::services
obilodeau Apr 17, 2012
c78624d
new arp_binary configuration parameter for debian support
obilodeau Apr 17, 2012
e16d3ce
Update script for debian package
fdurand Apr 17, 2012
275696b
updated NEWS with debian packages under new features
obilodeau Apr 17, 2012
508e2ef
Update debian package
Apr 18, 2012
816b5e1
Empty directory fix
Apr 18, 2012
eee09c3
Freeradius patch
fdurand Apr 18, 2012
44985cf
SELinux test only for RedHat based distros
obilodeau Apr 19, 2012
d34ef69
Fix load right sql schema
Apr 19, 2012
03e8cc2
Check the latest version of sqlschema
Apr 19, 2012
0f76e83
Debian freeradius fix
Apr 19, 2012
b5caf36
added another issue to list fixed with debian packages
obilodeau Apr 19, 2012
c35d3a1
added Fabrice as a maintainer
obilodeau Apr 19, 2012
fd6ebb6
updated the README's
obilodeau Apr 20, 2012
9a8c9f7
updated copyright information (source, copyright, authors, license)
obilodeau Apr 20, 2012
ff1c8e6
added UPGRADE and ChangeLog to docs
obilodeau Apr 20, 2012
c011cea
version 3.3.2 in debian/changelog
obilodeau Apr 20, 2012
5b291bf
dropping example files
obilodeau Apr 20, 2012
d1b3180
debian package: other deletions
obilodeau Apr 20, 2012
68e18e7
Depends in multiline format
obilodeau Apr 23, 2012
5e79759
Fixes debian package
fdurand Apr 23, 2012
0907715
Fix control file
fdurand Apr 23, 2012
867bfe0
renamed patch and removed dpkg-source boilerplate
obilodeau Apr 23, 2012
86fb86d
Fix rules file
fdurand Apr 23, 2012
a28ce11
Fix packetfence-remote-snort-sensor
fdurand Apr 23, 2012
28b39ba
Fix conffiles
fdurand Apr 23, 2012
8491899
typo fix
obilodeau Apr 23, 2012
fe265da
updated datetime for release
obilodeau Apr 23, 2012
c62bc30
Fix conffiles
fdurand Apr 23, 2012
874c8ea
Fix rules files and conffiles
fdurand Apr 23, 2012
f358549
Fix packetfence-remote-snort-sensor postinst and prerm
fdurand Apr 23, 2012
a60c5d4
Fix remote sensor init script
fdurand Apr 23, 2012
4cadf5b
changes to packetfence-remote-snort-sensor
obilodeau Apr 23, 2012
d77e99a
Vcs attributes in control
obilodeau Apr 23, 2012
a4eb1be
moved permission fixing into rules instead of post-install
obilodeau Apr 23, 2012
fcfdcad
Fix install param in rules file
fdurand Apr 24, 2012
b30e2a7
Fix dh_fixperms in rules file
fdurand Apr 24, 2012
fd488cf
Fix packetfence postrm script
fdurand Apr 24, 2012
6a11538
Add logrotate for packetfence
fdurand Apr 24, 2012
4951df3
Use of dh_link for freeradius link
fdurand Apr 24, 2012
2c32304
Fix rules
fdurand Apr 24, 2012
e561909
Use of dpkg-divert for replacing freeradius configuration files
fdurand Apr 24, 2012
3611077
Freeradius must be installed before installing packetfence (dpkg-divert)
fdurand Apr 24, 2012
f6e6bb6
Try to fix freeradius conf
fdurand Apr 24, 2012
2c1ad0b
Fix freeradius configuration files at remove
fdurand Apr 24, 2012
d0e4f41
Minor fix
fdurand Apr 24, 2012
57de211
Fix dpkg-divert fir /etc/freeradius/modules
fdurand Apr 24, 2012
5e68e5f
attempt at re-using our existing logrotate file for both RPM and Deb
obilodeau Apr 24, 2012
b72cd2e
Change conffiles and suid
fdurand Apr 24, 2012
40857a8
conffiles should be a list of files
fdurand Apr 24, 2012
14a9afa
setuid pfcmd
fdurand Apr 24, 2012
15a5f59
doing permissions and ownership inside rules
obilodeau Apr 25, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ For a list of compatibility related changes see the UPGRADE file.
--------------------------------------------------------------------------------
Version <stable-version> released on <releaseDate>

New Features
* debian packages (#1066, #1067)

Enhancements
* minor refactoring and cleanup
* debian support: arp binary location now configurable ([services].arp_binary)

Bug Fixes
* debian support: radiusd is started even if disabled


--------------------------------------------------------------------------------
Version 3.3.2 released on 2012-04-23

Expand Down
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

Maintainers
Olivier Bilodeau
Fabrice Durand
Francois Gaudreault
Derek Wuelfrath

Expand Down
2 changes: 1 addition & 1 deletion addons/logrotate
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
postrotate
# uncomment the crm statements if you are running packetfence in a corosync cluster
#/usr/sbin/crm resource unmanage PacketFence
/sbin/service packetfence condrestart >/dev/null 2>&1 || true
/etc/init.d/packetfence condrestart >/dev/null 2>&1 || true
#/usr/sbin/crm resource manage PacketFence
endscript
}
7 changes: 7 additions & 0 deletions conf/documentation.conf
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ Location of the snort binary. Only necessary to change if you are not
running the RPMed version.
EOT

[services.arp_binary]
type=text
description=<<EOT
Location of the arp binary. Only necessary to change if you are not
running the RPMed version.
EOT

[trapping.redirecturl]
type=text
description=<<EOT
Expand Down
5 changes: 5 additions & 0 deletions conf/pf.conf.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,11 @@ snmptrapd_binary=/usr/sbin/snmptrapd
#
# Location of the named binary. Only necessary to change if you are not running the RPMed version.
radiusd_binary=/usr/sbin/radiusd
#
# services.arp_binary
#
# Location of the arp binary. Only necessary to change if you are not running the RPMed version.
arp_binary=/sbin/radiusd

[vlan]
#
Expand Down
8 changes: 8 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PacketFence for Debian
----------------------

This is our initial attempt at packaging PacketFence for Debian-based systems.
Please report any issues on our bug tracker under the packaging category.
http://www.packetfence.org/bugs/

-- Durand Fabrice <[email protected]> Thu, 19 Apr 2012 14:36:28 -0400
16 changes: 16 additions & 0 deletions debian/README.source
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PacketFence for Debian
----------------------

Once inside a PacketFence git repository[1] checkout, get the source tarball with:

$ git archive <branch or tag> --prefix packetfence_<version>/ -o "packetfence_<version>.tar.gz"

Into debian/:

$ dpkg-buildpackage -rfakeroot

[1]: https://github.com/inverse-inc/packetfence/

-- Olivier Bilodeau <[email protected]> Thu, 19 Apr 2012 16:36:28 -0400


23 changes: 23 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
packetfence (3.3.2) unstable; urgency=low

* Version 3.3.2

-- Olivier Bilodeau <[email protected]> Mon, 23 Apr 2012 13:24:03 -0400

packetfence (3.3.1-1) unstable; urgency=low

* Version 3.3.1

-- Durand fabrice <[email protected]> Wed, 16 Apr 2012 14:41:28 -0400

packetfence (3.2.0-2) unstable; urgency=low

* Change postinst

-- Durand fabrice <[email protected]> Wed, 16 Apr 2012 14:36:28 -0400

packetfence (3.2.0-1) unstable; urgency=low

* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>

-- Durand fabrice <[email protected]> Wed, 04 Apr 2012 14:36:28 -0400
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
76 changes: 76 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
Source: packetfence
Section: main/net
Priority: optional
Maintainer: Durand fabrice <[email protected]>
Build-Depends: debhelper (>= 7.0.50~)
Standards-Version: 3.8.4
Vcs-Git: git://github.com/inverse-inc/packetfence.git
Vcs-browser: https://github.com/inverse-inc/packetfence/
Homepage: http://www.packetfence.org/

Package: packetfence
Architecture: all
Pre-Depends: freeradius, freeradius-ldap, freeradius-postgresql,
freeradius-mysql, freeradius-krb5
Depends: ${misc:Depends}, apache2, apache2.2-common, apache2-utils,
openssl, openssl-blacklist, openssl-blacklist-extra, php-log, snort,
mysql-server, libapache2-mod-proxy-html, libapache2-mod-php5, php-pear,
php5-mysql, php5-gd, perl-suid, libapache-htpasswd-perl, libbit-vector-perl,
libcgi-session-serialize-yaml-perl, libtimedate-perl, libapache-dbi-perl,
libdbd-mysql-perl, libfile-tail-perl, libnetwork-ipv4addr-perl,
libiptables-parse-perl, libiptables-chainmgr-perl, liblist-moreutils-perl,
liblocale-gettext-perl, liblog-log4perl-perl,
liblwp-useragent-determined-perl, libnet-mac-vendor-perl, libnet-mac-perl,
libnet-netmask-perl, libnet-pcap-perl, libnet-snmp-perl, libsnmp-perl,
libnet-telnet-cisco-perl, libparse-recdescent-perl,
libregexp-common-email-address-perl, libregexp-common-time-perl,
libperl-critic-perl, libreadonly-xs-perl, libhtml-template-perl,
libterm-readkey-perl, libtest-perl-critic-perl, libtest-pod-perl,
libtest-pod-coverage-perl, apache2-mpm-prefork, libthread-pool-simple-perl,
libuniversal-require-perl, libuniversal-exports-perl, libnet-rawip-perl,
libwww-perl, libapache-htpasswd-perl, libbit-vector-perl,
libcgi-session-perl, libconfig-inifiles-perl,
libdatetime-format-dateparse-perl, libdbi-perl, libdbd-mysql-perl,
libfile-tail-perl, libnetwork-ipv4addr-perl, libiptables-parse-perl,
libiptables-chainmgr-perl, liblist-moreutils-perl, liblocale-gettext-perl,
liblog-log4perl-perl, libnet-mac-perl, libnet-mac-vendor-perl,
libnet-netmask-perl, libnet-pcap-perl, libnet-write-perl, libnet-snmp-perl,
libnet-telnet-perl, libparse-recdescent-perl, libregexp-common-perl,
libreadonly-perl, libtemplate-perl, libterm-readkey-perl,
libtest-perl-critic-perl, libtest-pod-perl, libtest-pod-coverage-perl,
libuniversal-require-perl, libthread-serialize-perl, libload-perl,
libtry-tiny-perl, snmp, snmptrapfmt, libmime-lite-perl,
libnet-ldap-perl, libcrypt-generatepassword-perl, perl-doc, dhcp3-server,
bind9, librrds-perl, libnetpacket-perl, libcache-cache-perl, libcarp-perl,
libiptables-libiptc-perl, libload-perl, libmime-lite-tt-perl,
libnet-appliance-session-perl, libnet-cli-interact-perl,
libnet-frame-simple-perl, libnet-interface-perl, libnet-radius-perl,
libparse-nessus-nbe-perl, libphp-session-perl, libtest-mockdbi-perl,
gettext, vlan, libsoap-lite-perl
Description: PacketFence network registration / worm mitigation system
PacketFence is an open source network access control (NAC) system.
It can be used to effectively secure networks, from small to very large
heterogeneous networks. PacketFence provides features such
as
* registration of new network devices
* detection of abnormal network activities
* isolation of problematic devices
* remediation through a captive portal
* registration-based and scheduled vulnerability scans.

Package: packetfence-doc
Architecture: all
Description: documentation for packetfence
<insert long description, indented with spaces>

Package: packetfence-remote-snort-sensor
Architecture: all
Depends: ${misc:Depends}, snort, libfile-tail-perl, libconfig-inifiles-perl,
libio-socket-ssl-perl, libxml-parser-perl, libcrypt-ssleay-perl,
libsoap-lite-perl
Conflicts: packetfence
Description: Files needed for sending snort alerts to packetfence
The packetfence-remote-snort-sensor package contains the files needed
for sending snort alerts from a remote snort sensor to a PacketFence
server.

52 changes: 52 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
This work was packaged for Debian by:

Durand fabrice <[email protected]> on Wed, 04 Apr 2012 14:36:28 -0400

It was downloaded from:

http://www.packetfence.org/downloads/PacketFence/src/packetfence-3.2.0.tar.gz

Source code is hosted at:

https://github.com/inverse-inc/packetfence/

Upstream Author(s):

Olivier Bilodeau <[email protected]>
Fabrice Durand <[email protected]>
Francois Gaudreault <[email protected]>
Francis Lachapelle <[email protected]>
Derek Wuelfrath <[email protected]>

Copyright:

Copyright (C) 2006-2012 Inverse inc.
Copyright (C) 2005 David LaPorte
Copyright (C) 2005 Kevin Amorin

License:

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.

and is licensed under the GPL version 2,
see "/usr/share/common-licenses/GPL-2".

The Debian packaging is:

Copyright (C) 2012 Inverse inc.

and is licensed under the GPL version 2 or later,
see "/usr/share/common-licenses/GPL-2".
6 changes: 6 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NEWS
README
README.network-devices
ChangeLog
ChangeLog.old
UPGRADE
2 changes: 2 additions & 0 deletions debian/packetfence-doc.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#DOCS#

2 changes: 2 additions & 0 deletions debian/packetfence-doc.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#DOCS#

1 change: 1 addition & 0 deletions debian/packetfence-remote-snort-sensor.conffiles
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/local/pf/conf/pfdetect_remote.conf
139 changes: 139 additions & 0 deletions debian/packetfence-remote-snort-sensor.init
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: packetfence-remote-snort-sensor
# Required-Start: snort $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: Durand fabrice <[email protected]>

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC=packetfence-remote-snort-sensor # Introduce a short description here
NAME=packetfence-remote-snort-sensor # Introduce the short server's name here
DAEMON=/usr/local/pf/sbin/pfdetect_remote # Introduce the server's location here
PIDFILE=/usr/local/pf/var/pfdetect_remote.pid
SCRIPTNAME=/etc/init.d/$NAME
PROGBASE="$(basename ${DAEMON})"

# 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()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
$DAEMON -d -p /var/log/snort/alert
# || return 0
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend
# on this one. As a last resort, sleep for some time.
return 0
}

#
# Function that stops the daemon/service
#
do_stop()
{
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
killproc -p "$PIDFILE" "$DAEMON"
# Wait for children to finish too if this is a daemon that forks
# and if the daemon is only ever run from this initscript.
# If the above conditions are not satisfied then add some other code
# that waits for the process to drop all resources that could be
# needed by services started subsequently. A last resort is to
# sleep for some time.
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE
return 0
}

#
# Function that sends a SIGHUP to the daemon/service
#


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|status|restart|force-reload}" >&2
exit 3
;;
esac

:
Loading