aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-03-09 00:30:59 +0000
committerRuss Allbery <rra@stanford.edu>2007-03-09 00:30:59 +0000
commitdf39a5c8acc53c14df6cba18682090d72c1f94f2 (patch)
treea798ec75e3f8c05c626ef3b50ce85d02fa9f31ea /debian
parentaf5baf462cf17cd53c7df44e6d63d95db2dcb266 (diff)
Initial Debian build rules that just generate a kasetkey package.
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/control18
-rw-r--r--debian/copyright36
-rw-r--r--debian/kasetkey.install2
-rwxr-xr-xdebian/rules79
6 files changed, 142 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..143d553
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+wallet (0.1-1) unstable; urgency=low
+
+ * Initial release building only kasetkey.
+
+ -- Russ Allbery <rra@debian.org> Thu, 8 Mar 2007 16:07:05 -0800
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b8626c4
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b48b7e7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
+Source: wallet
+Section: net
+Priority: optional
+Maintainer: Russ Allbery <rra@debian.org>
+Build-Depends: debhelper (>= 4.0.0), libremctl-dev, libkrb5-dev,
+ libopenafs-dev
+Standards-Version: 3.7.2
+
+Package: kasetkey
+Priority: extra
+Architecture: i386 powerpc sparc alpha s390 ia64 hppa amd64 ppc64
+Depends: ${shlibs:Depends}
+Description: Set AFS kaserver keys and generate srvtabs
+ kasetkey can create or delete principals in an AFS kaserver, randomize
+ or change the keys of principals, and generate srvtabs for principals.
+ It's intended for automated generation of service srvtabs and for
+ synchronization between Kerberos v5 keytabs and Kerberos v4 keys in an
+ AFS kaserver. It only works with an AFS kaserver KDC.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..db8e5d4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,36 @@
+Packaged for Debian by Russ Allbery <rra@debian.org> 2007-03-08
+
+The source for this package currently isn't available except via the
+Debian package. It will be released publicly later.
+
+Upstream author:
+
+ Russ Allbery <rra@stanford.edu>
+
+Debian packaging copyright:
+
+ Copyright 2006, 2007 Board of Trustees, Leland Stanford Jr.
+ University.
+
+ All files and modifications related to Debian packaging are covered
+ under the same license terms as the rest of the package.
+
+Copyright:
+
+ Copyright 1994, 1998, 1999, 2000, 2006, 2007 Board of Trustees, Leland
+ Stanford Jr. University. All rights reserved.
+
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation, and that the name of Stanford University not
+ be used in advertising or publicity pertaining to distribution of the
+ software without specific, written prior permission. Stanford
+ University makes no representations about the suitability of this
+ software for any purpose. It is provided "as is" without express or
+ implied warranty.
+
+ THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+ WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/debian/kasetkey.install b/debian/kasetkey.install
new file mode 100644
index 0000000..339d9db
--- /dev/null
+++ b/debian/kasetkey.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/bin/kasetkey
+debian/tmp/usr/share/man/man8/kasetkey.8
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b3bf80e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# GNU copyright 1997 to 1999 by Joey Hess.
+# Further updates by Russ Allbery <rra@debian.org>
+
+# 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
+
+# Tell Autoconf the correct system types. We need to know the host
+# architecture to determine whether setpag is available.
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ SYSTEM = --build $(DEB_HOST_GNU_TYPE)
+else
+ SYSTEM = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
+# Set up compiler flags.
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+config.status: configure
+ dh_testdir
+ CFLAGS="$(CFLAGS)" ./configure $(SYSTEM) --prefix=/usr \
+ --mandir=\$${prefix}/share/man --with-afs-libs=/usr/lib/afs
+
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep:
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ [ ! -f Makefile ] || $(MAKE) distclean
+ dh_clean
+
+install: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean
+ $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
+ dh_install --fail-missing
+
+binary: binary-arch binary-indep
+binary-indep:
+
+binary-arch: DH_OPTIONS=-a
+binary-arch: install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+.PHONY: build build-arch build-indep clean binary-arch binary-indep binary
+.PHONY: install