From 4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6 Mon Sep 17 00:00:00 2001
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date: Thu, 28 Mar 2013 14:13:18 -0500
Subject: Split raring packaging into new directory due to defoma changes

---
 .../raring/applications/kcmldap/debian/changelog   |   5 +
 ubuntu/raring/applications/kcmldap/debian/compat   |   1 +
 ubuntu/raring/applications/kcmldap/debian/control  |  13 +++
 .../raring/applications/kcmldap/debian/copyright   |  31 ++++++
 ubuntu/raring/applications/kcmldap/debian/rules    |  27 ++++++
 .../kcmldap/debian/tde-ldap-cert-updater.init      | 108 +++++++++++++++++++++
 6 files changed, 185 insertions(+)
 create mode 100644 ubuntu/raring/applications/kcmldap/debian/changelog
 create mode 100644 ubuntu/raring/applications/kcmldap/debian/compat
 create mode 100644 ubuntu/raring/applications/kcmldap/debian/control
 create mode 100644 ubuntu/raring/applications/kcmldap/debian/copyright
 create mode 100755 ubuntu/raring/applications/kcmldap/debian/rules
 create mode 100644 ubuntu/raring/applications/kcmldap/debian/tde-ldap-cert-updater.init

(limited to 'ubuntu/raring/applications/kcmldap')

diff --git a/ubuntu/raring/applications/kcmldap/debian/changelog b/ubuntu/raring/applications/kcmldap/debian/changelog
new file mode 100644
index 000000000..f73a3b2ba
--- /dev/null
+++ b/ubuntu/raring/applications/kcmldap/debian/changelog
@@ -0,0 +1,5 @@
+kcontrol-ldap-bonding-trinity (0.5-0ubuntu0) karmic; urgency=low
+
+  * Karmic rebuild
+
+ -- Timothy Pearson <kb9vqf@pearsoncomputing.net>  Thu, 02 July 2009 16:08:00 -0600
diff --git a/ubuntu/raring/applications/kcmldap/debian/compat b/ubuntu/raring/applications/kcmldap/debian/compat
new file mode 100644
index 000000000..7ed6ff82d
--- /dev/null
+++ b/ubuntu/raring/applications/kcmldap/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/ubuntu/raring/applications/kcmldap/debian/control b/ubuntu/raring/applications/kcmldap/debian/control
new file mode 100644
index 000000000..b340f288f
--- /dev/null
+++ b/ubuntu/raring/applications/kcmldap/debian/control
@@ -0,0 +1,13 @@
+Source: kcontrol-ldap-bonding-trinity
+Section: tde
+Priority: optional
+Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
+XSBC-Original-Maintainer: Raphaƫl Pinson <raphink@raphink.net>
+Build-Depends: debhelper (>= 5), cdbs, tdelibs4-trinity-dev, libtdeldap-trinity-dev, automake, autoconf, libtool, libltdl-dev
+Standards-Version: 3.8.4
+
+Package: kcontrol-ldap-bonding-trinity
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, heimdal-clients, libpam-heimdal, libpam-ldap, libnss-ldap, libnss-db, nss-updatedb, nscd, libpam-ccreds
+Description: Kerberos control module for the TDE control center
+ This is a TDE control center module to manage TDE connections to Kerberos realms.
diff --git a/ubuntu/raring/applications/kcmldap/debian/copyright b/ubuntu/raring/applications/kcmldap/debian/copyright
new file mode 100644
index 000000000..540709e87
--- /dev/null
+++ b/ubuntu/raring/applications/kcmldap/debian/copyright
@@ -0,0 +1,31 @@
+This package was debianized by Timothy Pearson <kb9vqf@pearsoncomputing.net> on
+Thu, 17 May 2012 19:52:51 +0100.
+
+It was downloaded from http://www.trinitydesktop.org
+
+Upstream Author:  Timothy Pearson <kb9vqf@pearsoncomputing.net>
+
+copyright (C) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
+
+License:
+
+   This package 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 package 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 complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2012, Timothy Pearson <kb9vqf@pearsoncomputing.net> and
+is licensed under the GPL, see above.
+
diff --git a/ubuntu/raring/applications/kcmldap/debian/rules b/ubuntu/raring/applications/kcmldap/debian/rules
new file mode 100755
index 000000000..9bed17b05
--- /dev/null
+++ b/ubuntu/raring/applications/kcmldap/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include/tde
+DEB_CONFIGURE_MANDIR := /opt/trinity/share/man
+DEB_CONFIGURE_PREFIX := /opt/trinity
+DEB_CONFIGURE_INFODIR := /opt/trinity/share/info
+
+cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug)
+
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+                               && echo xz || echo bzip2)
+
+post-patches:: debian/stamp-bootstrap
+
+debian/stamp-bootstrap:
+	! [ -f /usr/share/libtool/ltmain.sh ] || \
+	cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh
+	! [ -f /usr/share/libtool/config/ltmain.sh ] || \
+	cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
+	cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
+	
+	make -f admin/Makefile.common cvs
+	touch debian/stamp-bootstrap
diff --git a/ubuntu/raring/applications/kcmldap/debian/tde-ldap-cert-updater.init b/ubuntu/raring/applications/kcmldap/debian/tde-ldap-cert-updater.init
new file mode 100644
index 000000000..4a2ef03ad
--- /dev/null
+++ b/ubuntu/raring/applications/kcmldap/debian/tde-ldap-cert-updater.init
@@ -0,0 +1,108 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          tde-ldap-cert-updater
+# Required-Start:    $local_fs $remote_fs
+# Required-Stop:     $local_fs $remote_fs
+# Should-Start:      console-screen kbd acpid hal krb5-kdc nis
+# Should-Stop:       console-screen kbd
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: TDE LDAP Realm Certificate Update Daemon
+# Description:       TDE LDAP Realm Certificate Update Daemon
+### END INIT INFO
+# /etc/init.d/tde-ldap-cert-updater: start or stop the TDE LDAP Realm Certificate Update Daemon
+#
+# description: TDE LDAP Realm Certificate Update Daemon
+#
+
+. /lib/lsb/init-functions
+
+set -e
+
+PATH=/opt/trinity/bin:/usr/bin:/sbin:/usr/sbin:/bin
+DAEMON=/opt/trinity/bin/tdeldapcertupdater
+PIDFILE=/var/run/tdeldapcertupdater.pid
+UPGRADEFILE=/var/run/tdeldapcertupdater.upgrade
+
+DESC="TDE LDAP Realm Certificate Update Daemon"
+
+# If we upgraded the daemon, we can't use the --exec argument to
+# start-stop-daemon since the inode will have changed.  The risk here is that
+# in a situation where the daemon died, its pidfile was not cleaned up, and
+# some other process is now running under that pid, start-stop-daemon will send
+# signals to an innocent process.  However, this seems like a corner case.
+# C'est la vie!
+if [ -e $UPGRADEFILE ]; then
+  SSD_ARGS="--pidfile $PIDFILE --startas $DAEMON"
+else
+  SSD_ARGS="--pidfile $PIDFILE --exec $DAEMON"
+fi
+
+stillrunning () {
+  if expr "$(cat /proc/$DAEMONPID/cmdline 2> /dev/null)" : "$DAEMON" > /dev/null 2>&1; then
+    true
+  else
+    # if the daemon does not remove its own pidfile, we will
+    rm -f $PIDFILE $UPGRADEFILE
+    false
+  fi;
+}
+
+case "$1" in
+  start)
+    log_action_begin_msg "Starting $DESC"
+    if start-stop-daemon --background --start --make-pidfile --quiet $SSD_ARGS -- $ARG; then
+      log_action_end_msg 0
+    else
+      log_warning_msg "already running"
+      log_action_end_msg 0
+    fi
+  ;;
+
+  restart)
+    /etc/init.d/tde-ldap-cert-updater stop
+    if [ -f $PIDFILE ]; then
+      if stillrunning; then
+        exit 1
+      fi
+    fi
+    /etc/init.d/tde-ldap-cert-updater start
+  ;;
+
+  reload)
+    log_action_begin_msg "Reloading $DESC"
+    if start-stop-daemon --stop --signal 1 --quiet $SSD_ARGS; then
+      log_action_end_msg 0
+    else
+      log_failure_msg "not running"
+      log_action_end_msg 1
+    fi
+  ;;
+
+  force-reload)
+    /etc/init.d/tde-ldap-cert-updater reload
+  ;;
+
+  stop)
+    log_action_begin_msg "Stopping $DESC"
+    if [ ! -f $PIDFILE ]; then
+      log_failure_msg "Not running ($PIDFILE not found)"
+      log_action_end_msg 0
+      exit 0
+    else
+      if start-stop-daemon --stop --quiet $SSD_ARGS; then
+        log_action_end_msg 0
+      else
+        log_failure_msg "not running"
+        log_action_end_msg 1
+      fi
+    fi
+  ;;
+
+  *)
+    echo "Usage: /etc/init.d/tde-ldap-cert-updater {start|stop|restart|reload|force-reload}"
+    exit 1
+    ;;
+esac
+
+exit 0
-- 
cgit v1.2.1