From: megacz Date: Wed, 13 Jun 2007 23:15:51 +0000 (+0000) Subject: add debian stuff X-Git-Url: https://git.hcoop.net/hcoop/zz_old/modwaklog.git/commitdiff_plain/bb8c0b77f5ff56679ca951c65afd68aac6f6bc6c add debian stuff git-svn-id: https://modwaklog.svn.sourceforge.net/svnroot/modwaklog/trunk/modwaklog@39 0d961d1b-a432-0410-8fea-cc29f225fe07 --- diff --git a/INSTALL b/INSTALL index 1df39a4..5924887 100644 --- a/INSTALL +++ b/INSTALL @@ -7,4 +7,11 @@ Type: make cp mod_waklog.so +Debian: + + chmod +x debian/rules + fakeroot dpkg-buildpackage + + + diff --git a/debian/500mod_waklog.info b/debian/500mod_waklog.info new file mode 100644 index 0000000..98c6144 --- /dev/null +++ b/debian/500mod_waklog.info @@ -0,0 +1,8 @@ +LoadModule: waklog_module /usr/lib/apache/1.3/mod_waklog.so +Directives: + WaklogProtected + WaklogPrincipal + WaklogUseAFSCell + WaklogUseUserTokens + WaklogDefaultPrincipal +Description: AFS Authentication for Apache diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..234d16b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +libapache-mod-waklog (0.0-umbc-20070316-1) unstable; urgency=low + + * Initial release (Closes: #nnnn) + + -- Adam Megacz Thu, 22 Mar 2007 21:05:30 -0700 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7db3389 --- /dev/null +++ b/debian/control @@ -0,0 +1,11 @@ +Source: libapache-mod-waklog +Section: web +Priority: optional +Maintainer: Adam Megacz +Build-Depends: apache-dev, libkrb5-dev, autoconf, automake +Standards-Version: 3.6.1 + +Package: libapache-mod-waklog +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, apache-common, krb5-config, libapache-mod-auth-kerb +Description: AFS Authentication for Apache diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..67ac4c8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,18 @@ +Copyright 2005 Regents of The University of Michigan +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 appears in all copies and +that both that copyright notice and this permission notice appear in +supporting documentation, and that the name of The University of +Michigan not be used in advertising or publicity pertaining to +distribution of the software without specific, written prior +permission. This software is supplied as is without expressed or +implied warranties of any kind. + +The University of Michigan +c/o UM Webmaster Team +4251 Plymouth Road +Ann Arbor, MI 48105-2785 + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..ca882bb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..1dd408c --- /dev/null +++ b/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + chmod +x regen.sh + ./regen.sh + ./configure --with-afs-libs=/usr/lib/afs --with-afs-headers=/usr/include/afs + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/libapache-mod-waklog.sgml > libapache-mod-waklog.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean --exclude ./_darcs/current/Makefile.orig --exclude ./Makefile.orig + +install: build + dh_testdir + dh_testroot + dh_clean -k --exclude ./_darcs/current/Makefile.orig --exclude ./Makefile.orig + dh_installdirs + + # Add here commands to install the package into debian/libapache-mod-waklog. + mkdir -p debian/libapache-mod-waklog/usr/lib/apache/1.3/ + mkdir -p debian/libapache-mod-waklog/etc/apache/conf.d/ + cp mod_waklog.so debian/libapache-mod-waklog/usr/lib/apache/1.3/ + cp debian/waklog.load debian/libapache-mod-waklog/etc/apache/conf.d/waklog.conf + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/waklog.load b/debian/waklog.load new file mode 100644 index 0000000..31c0dea --- /dev/null +++ b/debian/waklog.load @@ -0,0 +1 @@ +LoadModule waklog_module /usr/lib/apache2/modules/mod_waklog.so