Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added old rules file as examples

  • Loading branch information...
commit 2ccc02db1929163571b71d188a4d57ce08a58a30 1 parent 3493d7e
csmall authored
View
6 debian/changelog
@@ -1,3 +1,9 @@
+dh-make (0.56) unstable; urgency=low
+
+ * Put old rules files in, as an option
+
+ -- Craig Small <csmall@debian.org> Wed, 16 Jun 2010 22:55:13 +1000
+
dh-make (0.55) unstable; urgency=low
* Put options last for dh $@ in rules file Closes: #583720
View
2  dh_make
@@ -16,7 +16,7 @@ $Getopt::Long::autoabbrev = 0;
# Some important parameters
our $DHLIB="/usr/share/debhelper/dh_make";
our $POLICY_VERSION="3.8.4";
-our $DH_MAKE_VERSION="0.55";
+our $DH_MAKE_VERSION="0.56";
my %PACKAGE_TYPES = ( 's' => 'Single', 'l' => 'Library',
'm' => 'Multi-Binary', 'k' => 'Kernel Module', 'b' => 'cdbs',
'n' => 'Kernel Patch', 'i' => 'Independent' );
View
85 lib/debiani/rules.old.ex
@@ -0,0 +1,85 @@
+#!/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
+
+
+#DPKG_ARCH#
+#PATCH_CLASS#
+
+#CONFIGURE#
+
+build: build-stamp
+
+build-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP#
+ dh_testdir
+
+ # Add here commands to compile the package.
+ #MAKE#
+ #docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1
+
+ touch $@
+
+clean: #PATCH_CLEAN#
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp #CONFIGURE_STAMP#
+
+ # Add here commands to clean up after the build process.
+ #CLEAN#
+
+ dh_clean#PRESERVE#
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep #PRESERVE#
+ dh_installdirs
+
+ # Add here commands to install the package into debian/#PACKAGE#.
+ #INSTALL#
+
+
+# Build architecture-independent files here.
+binary-indep: install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs #CHANGELOGS#
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+# dh_installwm
+# dh_installudev
+# dh_lintian
+# dh_undocumented
+ dh_installman
+ dh_link
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE#
View
212 lib/debiank/rules.old.ex
@@ -0,0 +1,212 @@
+#!/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.
+#
+# This version is for a hypothetical package that can build a kernel modules
+# architecture-dependant package via make-kpkg, as well as an
+# architecture-independent module source package, and other packages
+# either dep/indep for things like common files or userspace components
+# needed for the kernel modules.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+#DPKG_ARCH#
+
+# some default definitions, important!
+#
+# Name of the source package
+psource:=#PACKAGE#-source
+
+# The short upstream name, used for the module source directory
+sname:=#PACKAGE#
+
+### KERNEL SETUP
+### Setup the stuff needed for making kernel module packages
+### taken from /usr/share/kernel-package/sample.module.rules
+
+# prefix of the target package name
+PACKAGE=#PACKAGE#-modules
+# modifieable for experiments or debugging m-a
+MA_DIR ?= /usr/share/modass
+# load generic variable handling
+-include $(MA_DIR)/include/generic.make
+# load default rules, including kdist, kdist_image, ...
+-include $(MA_DIR)/include/common-rules.make
+
+#PATCH_CLASS#
+
+# module assistant calculates all needed things for us and sets
+# following variables:
+# KSRC (kernel source directory), KVERS (kernel version string), KDREV
+# (revision of the Debian kernel-image package), CC (the correct
+# compiler), VERSION (the final package version string), PKGNAME (full
+# package name with KVERS included), DEB_DESTDIR (path to store DEBs)
+
+# The kdist_config target is called by make-kpkg modules_config and
+# by kdist* rules by dependency. It should configure the module so it is
+# ready for compilation (mostly useful for calling configure).
+# prep-deb-files from module-assistant creates the neccessary debian/ files
+kdist_config: prep-deb-files
+
+# the kdist_clean target is called by make-kpkg modules_clean and from
+# kdist* rules. It is responsible for cleaning up any changes that have
+# been made by the other kdist_commands (except for the .deb files created)
+kdist_clean: clean
+ $(MAKE) $(MFLAGS) -f debian/rules clean
+# rm -f driver/*.o driver/*.ko
+#
+### end KERNEL SETUP
+
+#CONFIGURE#
+
+build-arch: #CONFIGURE_STAMP# #CONFIG_STATUS# build-arch-stamp
+build-arch-stamp: #PATCH_STAMP#
+ dh_testdir
+
+ # Add here command to compile/build the package.
+ $(MAKE)
+
+ touch $@
+
+#k = $(shell echo $(KVERS) | grep -q ^2.6 && echo k)
+
+# the binary-modules rule is invoked by module-assistant while processing the
+# kdist* targets. It is called by module-assistant or make-kpkg and *not*
+# during a normal build
+binary-modules:
+ dh_testroot
+ dh_prep
+ dh_installdirs lib/modules/$(KVERS)/misc
+
+ # Build the module
+ $(MAKE) -C drivers KERNEL_DIR=$(KSRC) KVERS=$(KVERS)
+
+ # Install the module
+ cp drivers/slusb.$ko drivers/slamr.$ko debian/$(PKGNAME)/lib/modules/$(KVERS)/misc
+
+ dh_installdocs
+ dh_installchangelogs
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol -- -v$(VERSION)
+ dh_md5sums
+ dh_builddeb --destdir=$(DEB_DESTDIR)
+ dh_prep
+
+build-indep: #CONFIG_STATUS# #CONFIGURE_STAMP# build-indep-stamp
+build-indep-stamp: #PATCH_STAMP#
+ dh_testdir
+
+ # Add here command to compile/build the arch indep package.
+ # It's ok not to do anything here, if you don't need to build
+ # anything for this package.
+ #docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1
+
+ touch $@
+
+build: build-arch build-indep
+
+clean: #PATCH_CLEAN#
+ dh_testdir
+ #dh_testroot
+ rm -f build-arch-stamp build-indep-stamp #CONFIGURE_STAMP#
+
+ # Add here commands to clean up after the build process.
+ #CLEAN#
+
+ dh_clean
+
+install: DH_OPTIONS=
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ # Create the directories to install the source into
+ dh_installdirs -p$(psource) usr/src/modules/$(sname)/debian
+
+ # Copy only the driver source to the proper location
+ cp -s driver/* debian/$(psource)/usr/src/modules/$(sname)
+ # Copy the needed debian/ pieces to the proper location
+ cp debian/*modules.in* \
+ debian/$(psource)/usr/src/modules/$(sname)/debian
+ cp debian/*_KVERS_* debian/rules debian/changelog debian/copyright \
+ debian/compat debian/$(psource)/usr/src/modules/$(sname)/debian/
+ cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules
+
+ # Add here commands to install the package into debian/#PACKAGE#.
+ #INSTALL#
+
+ dh_install
+
+# Build architecture-independent files here.
+# Pass -i to all debhelper commands in this target to reduce clutter.
+binary-indep: build install
+ dh_testdir -i
+ dh_testroot -i
+ dh_installchangelogs #CHANGELOGS# -i
+ dh_installdocs -i
+ dh_installexamples -i
+# dh_install -i
+# dh_installmenu -i
+# dh_installdebconf -i
+# dh_installlogrotate -i
+# dh_installemacsen -i
+# dh_installpam -i
+# dh_installmime -i
+# dh_installinit -i
+# dh_installcron -i
+# dh_installinfo -i
+ dh_installman -i
+ dh_link -i
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+# dh_perl -i
+# dh_python -i
+# dh_makeshlibs -i
+ dh_installdeb -i
+ dh_shlibdeps -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir -s
+ dh_testroot -s
+# dh_installdebconf -s
+ dh_installdocs -s
+ dh_installexamples -s
+ dh_installmenu -s
+# dh_installlogrotate -s
+# dh_installemacsen -s
+# dh_installpam -s
+# dh_installmime -s
+# dh_installinit -s
+ dh_installcron -s
+# dh_installman -s
+ dh_installinfo -s
+ dh_installchangelogs #CHANGELOGS# -s
+ dh_strip -s
+ dh_link -s
+ dh_compress -s
+ dh_fixperms -s
+# dh_makeshlibs -s
+ dh_installdeb -s
+# dh_perl -s
+ dh_shlibdeps -s
+ dh_gencontrol -s
+ dh_md5sums -s
+ dh_builddeb -s
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE# binary-modules kdist kdist_configure kdist_image kdist_clean
View
93 lib/debianl/rules.old.ex
@@ -0,0 +1,93 @@
+#!/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
+
+
+#DPKG_ARCH#
+
+#PATCH_CLASS#
+
+# shared library versions, option 1
+version=2.0.5
+major=2
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+#version=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+#major=`ls src/.libs/lib*.so.* | \
+# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+#CONFIGURE#
+
+build: build-stamp
+build-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP#
+ dh_testdir
+
+ # Add here commands to compile the package.
+ #MAKE#
+
+ touch $@
+
+clean: #PATCH_CLEAN#
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp #CONFIGURE_STAMP#
+
+ # Add here commands to clean up after the build process.
+ #CLEAN#
+
+ dh_clean#PRESERVE#
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep #PRESERVE#
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp
+ #INSTALL#
+
+
+# Build architecture-independent files here.
+binary-indep: install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs #CHANGELOGS#
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# 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 #PHONY_CONFIGURE#
View
117 lib/debianm/rules.old.ex
@@ -0,0 +1,117 @@
+#!/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.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets by Bill Allombert 2001
+
+# 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
+
+#DPKG_ARCH#
+
+
+#PATCH_CLASS#
+
+#CONFIGURE#
+
+#Architecture
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP#
+
+ # Add here commands to compile the arch part of the package.
+ ##MAKE#
+ touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP#
+
+ # Add here commands to compile the indep part of the package.
+ #$(MAKE) doc
+ touch $@
+
+clean: #PATCH_CLEAN#
+ dh_testdir
+ dh_testroot
+ rm -f build-arch-stamp build-indep-stamp #CONFIGURE_STAMP#
+
+ # Add here commands to clean up after the build process.
+ #CLEAN#
+
+ dh_clean#PRESERVE#
+
+install: install-indep install-arch
+install-indep:
+ dh_testdir
+ dh_testroot
+ dh_prep -i#PRESERVE#
+ dh_installdirs -i
+
+ # Add here commands to install the indep part of the package into
+ # debian/<package>-doc.
+ #INSTALLDOC#
+
+ dh_install -i
+
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_prep -s#PRESERVE#
+ dh_installdirs -s
+
+ # Add here commands to install the arch part of the package into
+ # debian/tmp.
+ #INSTALL#
+
+ dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs #CHANGELOGS#
+ dh_installdocs
+ dh_installexamples
+# 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
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+ $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch #PHONY_CONFIGURE#
View
38 lib/debiann/rules.old.ex
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+
+build: build-stamp
+
+build-stamp:
+ dh_testdir
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ dh_installkpatches
+
+# Build architecture-independent files here.
+binary-indep: install
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installchangelogs
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-arch: binary-indep
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
View
85 lib/debians/rules.old.ex
@@ -0,0 +1,85 @@
+#!/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
+
+
+#DPKG_ARCH#
+#PATCH_CLASS#
+
+#CONFIGURE#
+
+build: build-stamp
+
+build-stamp: #CONFIGURE_STAMP# #CONFIG_STATUS# #PATCH_STAMP#
+ dh_testdir
+
+ # Add here commands to compile the package.
+ #MAKE#
+ #docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1
+
+ touch $@
+
+clean: #PATCH_CLEAN#
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp #CONFIGURE_STAMP#
+
+ # Add here commands to clean up after the build process.
+ #CLEAN#
+
+ dh_clean#PRESERVE#
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep #PRESERVE#
+ dh_installdirs
+
+ # Add here commands to install the package into debian/#PACKAGE#.
+ #INSTALL#
+
+
+# Build architecture-independent files here.
+binary-indep: install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs #CHANGELOGS#
+ 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 #PHONY_CONFIGURE#

0 comments on commit 2ccc02d

Please sign in to comment.
Something went wrong with that request. Please try again.