add freeradius-yubikey debian package
authorMatthew Newton <mcn4@leicester.ac.uk>
Thu, 1 Oct 2015 00:58:40 +0000 (01:58 +0100)
committerMatthew Newton <mcn4@leicester.ac.uk>
Thu, 1 Oct 2015 00:58:40 +0000 (01:58 +0100)
also include libykclient-dev to build that functionality as well

debian/control
debian/freeradius-yubikey.install [new file with mode: 0644]
debian/freeradius-yubikey.lintian-overrides [new file with mode: 0644]
debian/freeradius-yubikey.postinst [new file with mode: 0755]
debian/rules

index bba69d8..34e8e5e 100644 (file)
@@ -23,6 +23,7 @@ Build-Depends: debhelper (>= 9),
  libtalloc-dev,
  libwbclient-dev,
  libyubikey-dev,
  libtalloc-dev,
  libwbclient-dev,
  libyubikey-dev,
+ libykclient-dev,
  libmemcached-dev,
  libhiredis-dev,
  python-dev
  libmemcached-dev,
  libhiredis-dev,
  python-dev
@@ -166,6 +167,13 @@ Description: Memcached module for FreeRADIUS server
  The FreeRADIUS server can cache data in memcached and this package
  contains the required module.
 
  The FreeRADIUS server can cache data in memcached and this package
  contains the required module.
 
+Package: freeradius-yubikey
+Architecture: any
+Depends: freeradius (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, ${dist:Depends}
+Description: Yubikey module for FreeRADIUS server
+ This package is required to add Yubikey functionality to the
+ FreeRADIUS server.
+
 Package: freeradius-dbg
 Architecture: any
 Section: debug
 Package: freeradius-dbg
 Architecture: any
 Section: debug
diff --git a/debian/freeradius-yubikey.install b/debian/freeradius-yubikey.install
new file mode 100644 (file)
index 0000000..3119a4c
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/freeradius/rlm_yubikey.so
diff --git a/debian/freeradius-yubikey.lintian-overrides b/debian/freeradius-yubikey.lintian-overrides
new file mode 100644 (file)
index 0000000..48f82de
--- /dev/null
@@ -0,0 +1 @@
+freeradius-dhcp: binary-or-shlib-defines-rpath
diff --git a/debian/freeradius-yubikey.postinst b/debian/freeradius-yubikey.postinst
new file mode 100755 (executable)
index 0000000..1b074d9
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+set -e
+
+case "$1" in
+  configure)
+        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+          invoke-rc.d freeradius force-reload
+        else
+          /etc/init.d/freeradius force-reload
+        fi
+       ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
index 2b084a5..8cab2bd 100755 (executable)
@@ -29,7 +29,7 @@ logdir          = /var/log/$(package)
 pkgdocdir       = /usr/share/doc/$(package)
 raddbdir        = /etc/$(package)
 
 pkgdocdir       = /usr/share/doc/$(package)
 raddbdir        = /etc/$(package)
 
-modulelist=krb5 ldap sql_mysql sql_iodbc sql_postgresql dhcp redis
+modulelist=krb5 ldap sql_mysql sql_iodbc sql_postgresql dhcp redis yubikey
 pkgs=$(shell dh_listpackages)
 
 # This has to be exported to make some magic below work.
 pkgs=$(shell dh_listpackages)
 
 # This has to be exported to make some magic below work.