summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDaniel Gollub <dgollub@att.com>2019-11-11 15:07:38 +0100
committerDaniel Gollub <dgollub@att.com>2019-11-11 15:07:38 +0100
commit5227b247c8b6da5b07d5e1a4541e59be3ed32346 (patch)
tree76adbf264730c7bd0cc0e9e90ea81dada74ad95c /debian
downloadtacplusd-5227b247c8b6da5b07d5e1a4541e59be3ed32346.tar.gz
tacplusd-5227b247c8b6da5b07d5e1a4541e59be3ed32346.zip
DANOS Importinitial
Diffstat (limited to 'debian')
-rw-r--r--debian/.gitignore12
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control27
-rw-r--r--debian/copyright56
-rw-r--r--debian/lintian-overrides1
-rwxr-xr-xdebian/rules17
-rw-r--r--debian/source/format1
-rw-r--r--debian/tacplusd.init56
-rw-r--r--debian/tacplusd.install2
-rw-r--r--debian/tacplusd.service16
11 files changed, 194 insertions, 0 deletions
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..5a243b9
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,12 @@
+autoreconf.after
+autoreconf.before
+files
+*.debhelper.log
+*.substvars
+*.debhelper.log
+*.substvars
+*.postinst.debhelper
+*.postrm.debhelper
+tacplusd-dbg/
+tacplusd/
+tmp/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..acd6ed8
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+tacplusd (1.19) unstable; urgency=medium
+
+ * DANOS Import
+
+ -- Vyatta Package Maintainers <DL-vyatta-help@att.com> Sat, 09 Nov 2019 11:02:32 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..13958d9
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,27 @@
+Source: tacplusd
+Section: contrib/net
+Priority: extra
+Maintainer: Vyatta Package Maintainers <DL-vyatta-help@att.com>
+Build-Depends: debhelper (>= 9), autoconf, automake, autotools-dev,
+ libsystemd-dev, libtac-dev (>= 1.3.9-0vyatta11), libglib2.0-dev,
+ pkg-config, cpio, dh-systemd, dh-autoreconf, cpputest, libcpputest-dev
+Standards-Version: 3.9.8
+
+Package: tacplusd
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, lsb-base (>= 3.0-6)
+Provides: vyatta-tacplus-daemon
+Replaces: vyatta-tacplus-daemon
+Conflicts: vyatta-tacplus-daemon
+Breaks: vyatta-tacacs (<< 1.8), sssd-common (<< 1.12.6-0vyatta15),
+ vyatta-tacplus-account (<< 1.8)
+Description: TACACS+ daemon used to forward and relay TACACS+
+ requests and responses to dbus clients.
+
+Package: tacplusd-dbg
+Architecture: any
+Priority: extra
+Section: contrib/debug
+Depends: ${misc:Depends}, tacplusd (= ${binary:Version})
+Description: tacplusd debugging symbols
+ The debugging symbols for tacplusd package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2e43887
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,56 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files: debian/*
+Copyright: 2016 Brocade Communications Systems, Inc.
+ 2018-2019 AT&T Intellectual Property.
+License: GPL-2.0
+
+Files: tacplus-daemon/daemon.c
+ tacplus-daemon/daemon.h
+ tacplus-daemon/dbus_service.c
+ tacplus-daemon/dbus_service.h
+ tacplus-daemon/main.c
+ tacplus-daemon/main.h
+ tacplus-daemon/parser.c
+ tacplus-daemon/parser.h
+ tacplus-daemon/queue.c
+ tacplus-daemon/queue.h
+ tacplus-daemon/statistics.c
+ tacplus-daemon/statistics.h
+ tacplus-daemon/tacplus_srv_conn.c
+ tacplus-daemon/tacplus_srv_conn.h
+ tacplus-daemon/test/parserTester.cpp
+ tacplus-daemon/test/queueTester.cpp
+ tacplus-daemon/test/serverConnectTester.cpp
+ tacplus-daemon/test/testMain.cpp
+ tacplus-daemon/test/transactionTester.cpp
+ tacplus-daemon/test/ut_utils.c
+ tacplus-daemon/test/ut_utils.h
+ tacplus-daemon/test/utilsTester.cpp
+ tacplus-daemon/transaction.c
+ tacplus-daemon/transaction.h
+ tacplus-daemon/transaction_private.h
+ tacplus-daemon/utils.c
+ tacplus-daemon/utils.h
+Copyright: 2015-2016 Brocade Communications Systems, Inc.
+ 2018-2019 AT&T Intellectual Property.
+License: GPL-2.0
+ 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;
+ version 2.
+ .
+ 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 package; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..abf4dda
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1 @@
+tacplusd: binary-without-manpage usr/sbin/tacplusd
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d029fd3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with autoreconf,systemd
+
+# Don't start any daemon by default. This is up to configd.
+override_dh_systemd_enable:
+ dh_systemd_enable --name=tacplusd --no-enable
+
+override_dh_installinit:
+ dh_installinit --no-start
+
+override_dh_systemd_start:
+ dh_systemd_start --no-start
+
+override_dh_strip:
+ dh_strip --dbg-package=tacplusd-dbg
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)
diff --git a/debian/tacplusd.init b/debian/tacplusd.init
new file mode 100644
index 0000000..71b06d8
--- /dev/null
+++ b/debian/tacplusd.init
@@ -0,0 +1,56 @@
+#!/bin/bash
+#
+### BEGIN INIT INFO
+# Provides: tacplusd
+# Required-Start: $local_fs $network $remote_fs $syslog
+# Required-Stop: $local_fs $network $remote_fs $syslog
+# Default-Start:
+# Default-Stop:
+# Short-Description: start and stop Tacplus daemon
+### END INIT INFO
+#
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+. /lib/lsb/init-functions
+
+DAEMON=/usr/sbin/tacplusd
+PIDFILE=/var/run/tacplusd.pid
+OPTIONS=
+
+case $1 in
+ start)
+ log_daemon_msg "Starting TACACS+ daemon" "tacplusd"
+ start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \
+ --startas $DAEMON -- -p $PIDFILE $OPTIONS
+ log_end_msg $?
+ ;;
+ stop)
+ log_daemon_msg "Stopping TACACS+ daemon" "tacplusd"
+ start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
+ log_end_msg $?
+ rm -f $PIDFILE
+ rm -r $ENVFILE
+ ;;
+ restart|force-reload)
+ $0 stop && sleep 2 && $0 start
+ ;;
+ try-restart)
+ if $0 status >/dev/null; then
+ $0 restart
+ else
+ exit 0
+ fi
+ ;;
+ reload)
+ pkill -HUP tacplusd
+ ;;
+ status)
+ status_of_proc $DAEMON "TACACS+ daemon server"
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
+ exit 2
+ ;;
+esac
+
diff --git a/debian/tacplusd.install b/debian/tacplusd.install
new file mode 100644
index 0000000..7df0090
--- /dev/null
+++ b/debian/tacplusd.install
@@ -0,0 +1,2 @@
+usr/sbin/tacplusd
+etc/dbus-1/system.d/net.vyatta.tacplus.conf
diff --git a/debian/tacplusd.service b/debian/tacplusd.service
new file mode 100644
index 0000000..c6ffd4f
--- /dev/null
+++ b/debian/tacplusd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Tacacs+ D-Bus Daemon
+
+[Service]
+Type=forking
+EnvironmentFile=/var/run/tacplus.env
+ExecReload=/bin/kill -SIGHUP $MAINPID
+ExecStart=/usr/sbin/tacplusd $CONFIG /run/tacplusd-default.pid
+KillSignal=SIGTERM
+PIDFile=/run/tacplusd-default.pid
+Restart=on-failure
+# should be maximum socket timeout permitted
+TimeoutStopSec=30
+
+[Install]
+WantedBy=multi-user.target