From e1971e4774a6ebb5ed33a09bdd60afa2c0534b6f Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Fri, 5 Feb 2010 09:54:11 -0800 Subject: Initial commit. --- debian/README | 6 +++ debian/autogen.sh | 11 ++++++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 18 +++++++++ debian/copyright | 36 ++++++++++++++++++ debian/docs | 2 + debian/linda | 1 + debian/lintian | 2 + debian/rules | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 191 insertions(+) create mode 100644 debian/README create mode 100755 debian/autogen.sh create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/linda create mode 100644 debian/lintian create mode 100755 debian/rules (limited to 'debian') diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..4e16646 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package vyatta-biosdevname +---------------------------- + +This package has the Vyatta version of the biosdevname utility. + + -- Bob Gilligan Wed, 03 Feb 2010 diff --git a/debian/autogen.sh b/debian/autogen.sh new file mode 100755 index 0000000..e8c94af --- /dev/null +++ b/debian/autogen.sh @@ -0,0 +1,11 @@ +#!/bin/sh + + +rm -rf config +rm -f aclocal.m4 config.guess config.statusconfig.sub configure INSTALL + +autoreconf --force --install + +rm -f config.sub config.guess +ln -s /usr/share/misc/config.sub . +ln -s /usr/share/misc/config.guess . diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9e88601 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +vyatta-biosdevname (0.1) unstable; urgency=low + + * Initial Release. + + -- Bob Gilligan Wed, 03 Feb 2010 15:30:45 -0800 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..78175eb --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: vyatta-biosdevname +Section: contrib/net +Priority: extra +Maintainer: Vyatta Package Maintainers +Build-Depends: debhelper (>= 5), autotools-dev, libpci-dev +Standards-Version: 3.7.2 + +Package: vyatta-biosdevname +Architecture: all +Depends: ${shlibs:Depends}, + libpci3, + zlib1g, + ${misc:Depends} +Pre-Depends: +Suggests: +Replaces: +Description: Vyatta version of the biosdevname utility. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..05f48ef --- /dev/null +++ b/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Bob Gilligan on +Wed, 03 Feb 2010 15:26:47 -0800 + +It's original content from the GIT repository + + +Upstream Author: + + + +Copyright: + + Copyright (C) 2010 Vyatta, Inc. + All Rights Reserved. + +License: + +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; either version 2, or (at your option) +any later version. + +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. + +A copy of the GNU General Public License is available as +`/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution +or on the World Wide Web at `http://www.gnu.org/copyleft/gpl.html'. +You can also obtain it by writing to the Free Software Foundation, +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + +The Debian packaging is (C) 2007, An-Cheng Huang and +is licensed under the GPL, see above. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..50bd824 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +NEWS +README diff --git a/debian/linda b/debian/linda new file mode 100644 index 0000000..0381d9d --- /dev/null +++ b/debian/linda @@ -0,0 +1 @@ +Tag: file-in-opt diff --git a/debian/lintian b/debian/lintian new file mode 100644 index 0000000..e33d05d --- /dev/null +++ b/debian/lintian @@ -0,0 +1,2 @@ +vyatta-biosdevname: file-in-unusual-dir +vyatta-biosdevname: dir-or-file-in-opt diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5ac511a --- /dev/null +++ b/debian/rules @@ -0,0 +1,109 @@ +#!/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 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +PACKAGE=vyatta-biosdevname +PKGDIR=$(CURDIR)/debian/$(PACKAGE) + +CFLAGS = -Wall -g + +configure = ./configure +configure += --host=$(DEB_HOST_GNU_TYPE) +configure += --build=$(DEB_BUILD_GNU_TYPE) +# configure += --prefix=/opt/vyatta +# configure += --mandir=\$${prefix}/share/man +# configure += --infodir=\$${prefix}/share/info +configure += CFLAGS="$(CFLAGS)" +configure += LDFLAGS="-Wl,-z,defs" + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure.ac Makefile.am + chmod +x debian/autogen.sh + debian/autogen.sh + +config.status: configure + dh_testdir + rm -f config.cache + $(configure) + +build: build-stamp + +build-stamp: config.status + dh_testdir + $(MAKE) + touch $@ + +clean: clean-patched + +# Clean everything up, including everything auto-generated +# at build time that needs not to be kept around in the Debian diff +clean-patched: + dh_testdir + dh_testroot + if test -f Makefile ; then $(MAKE) clean distclean ; fi + rm -f build-stamp + rm -f config.status config.sub config.guess config.log + rm -f aclocal.m4 configure Makefile.in Makefile INSTALL + rm -rf config + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) DESTDIR=$(PKGDIR) install + + install -D --mode=0644 debian/lintian $(PKGDIR)/usr/share/lintian/overrides/$(PACKAGE) + install -D --mode=0644 debian/linda $(PKGDIR)/usr/share/linda/overrides/$(PACKAGE) + # We don't use the rules file from this package + rm -rf $(PKGDIR)/etc/udev/rules.d + + +# Build architecture-independent files here. +binary-indep: build install + rm -f debian/files + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_install + dh_installdebconf + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + if [ -f "../.VYATTA_DEV_BUILD" ]; then \ + dh_gencontrol -- -v999.dev; \ + else \ + dh_gencontrol; \ + fi + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# This is an architecture independent package +# so; we have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install -- cgit v1.2.3