From 82e1de24f58a3c1b032ee7fda3592311b6798d44 Mon Sep 17 00:00:00 2001 From: arifali Date: Tue, 10 Apr 2012 20:01:59 +0000 Subject: [PATCH] openslp-xcat: initial commit for debian packaging Former-commit-id: 34c966305a982ede564bc3ff63e6982a3464127d --- OpenSLP/debian/changelog | 5 +++ OpenSLP/debian/conffiles | 1 + OpenSLP/debian/control | 13 ++++++++ OpenSLP/debian/rules | 67 ++++++++++++++++++++++++++++++++++++++++ OpenSLP/make_deb.sh | 9 ++++++ 5 files changed, 95 insertions(+) create mode 100644 OpenSLP/debian/changelog create mode 100644 OpenSLP/debian/conffiles create mode 100644 OpenSLP/debian/control create mode 100755 OpenSLP/debian/rules create mode 100755 OpenSLP/make_deb.sh diff --git a/OpenSLP/debian/changelog b/OpenSLP/debian/changelog new file mode 100644 index 0000000..379fb7b --- /dev/null +++ b/OpenSLP/debian/changelog @@ -0,0 +1,5 @@ +openslp-xcat (1.2.1-1) unstable; urgency=low + + * Initial relase for xCAT + + -- Arif Ali Tue, 10 Apr 2012 12:38:00 +0100 diff --git a/OpenSLP/debian/conffiles b/OpenSLP/debian/conffiles new file mode 100644 index 0000000..62042c2 --- /dev/null +++ b/OpenSLP/debian/conffiles @@ -0,0 +1 @@ +/usr/local/etc/slp.conf diff --git a/OpenSLP/debian/control b/OpenSLP/debian/control new file mode 100644 index 0000000..d72548e --- /dev/null +++ b/OpenSLP/debian/control @@ -0,0 +1,13 @@ +Source: openslp-xcat +Section: net +Priority: extra +Maintainer: Arif Ali +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.8.4 + +Package: openslp-xcat +Section: utils +Priority: extra +Architecture: any +Description: Open source implementation of Service Location Protocol V2 + Open source implementation of Service Location Protocol V2 diff --git a/OpenSLP/debian/rules b/OpenSLP/debian/rules new file mode 100755 index 0000000..37be632 --- /dev/null +++ b/OpenSLP/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f + +# Comment this to turn off verbose mode. +export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +build: build-stamp +build-stamp: + dh_testdir + dh_quilt_patch + ./configure --enable-shared=no + $(MAKE) + +clean: + dh_testdir + dh_testroot + #$(MAKE) distclean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + mkdir -p `pwd`/debian/tmp/usr/local/bin + cp slptool/slptool `pwd`/debian/tmp/usr/local/bin/. + mkdir -p `pwd`/debian/tmp/usr/local/etc + cp etc/slp.conf `pwd`/debian/tmp/usr/local/etc/. + +# Build architecture-independent files here. +binary-indep: + dh_testdir -i + dh_testroot -i + dh_installdocs -i + dh_installchangelogs -i + dh_compress -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installinit -a + dh_installdocs -a + dh_installexamples -a +# dh_installmenu +# dh_installcron + dh_installdebconf -a + dh_installchangelogs -a + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/OpenSLP/make_deb.sh b/OpenSLP/make_deb.sh new file mode 100755 index 0000000..b2204b9 --- /dev/null +++ b/OpenSLP/make_deb.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +wget "http://downloads.sourceforge.net/project/openslp/OpenSLP/1.2.1/openslp-1.2.1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fopenslp%2Ffiles%2FOpenSLP%2F1.2.1%2Fopenslp-1.2.1.tar.gz%2Fdownload&ts=1334057514&use_mirror=freefr" -O openslp-1.2.1.tar.gz +tar xvfz openslp-1.2.1.tar.gz +cd openslp-1.2.1 +cp -rL ../debian . +dpkg-buildpackage +cd - +rm -rf openslp-1.2.1*