Debianize
authorMichael Neuling <mikey@neuling.org>
Tue, 21 Nov 2006 02:08:31 +0000 (13:08 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 12 Nov 2009 23:58:42 +0000 (10:58 +1100)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Makefile [new file with mode: 0644]
debian/bitfield-data.install [new file with mode: 0644]
debian/bitfield.install [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/rules [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..0d4b755
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+INSTALLDIR=/usr/bin
+VERSION="0.0.1"
+SOURCES=bitfield bitfield-completions.sh bitfield.vim Makefile
+DEBSOURCES=bitfield.install bitfield-data.install changelog control rules
+CONFS=cell.conf powerpc.conf
+
+all: 
+
+clean:
+       rm -rf bitfield-${VERSION}
+
+install: 
+       install -d ${DESTDIR}${INSTALLDIR}
+       install -d ${DESTDIR}/etc/bash_completion.d
+       install -d ${DESTDIR}/usr/share/vim/addons/syntax
+       install -d ${DESTDIR}/etc/bitfield.d
+       install -m 755 -t ${DESTDIR}${INSTALLDIR} bitfield 
+       install -m 644 -D bitfield-completions.sh ${DESTDIR}/etc/bash_completion.d/bitfield
+       install -m 644 -t ${DESTDIR}/usr/share/vim/addons/syntax bitfield.vim
+       install -m 644 -t ${DESTDIR}/etc/bitfield.d $(foreach f,$(CONFS),conf/$(f))
+
+dist: clean
+       mkdir -p bitfield-${VERSION}/debian
+       mkdir -p bitfield-${VERSION}/conf
+       cp -a ${SOURCES} bitfield-${VERSION}
+       cp -a $(foreach f,$(DEBSOURCES),debian/$(f)) bitfield-${VERSION}/debian
+       cp -a $(foreach f,$(CONFS),conf/$(f)) bitfield-${VERSION}/conf
+       tar zcvf bitfield-${VERSION}.tar.gz bitfield-${VERSION}
diff --git a/debian/bitfield-data.install b/debian/bitfield-data.install
new file mode 100644 (file)
index 0000000..b7cb8af
--- /dev/null
@@ -0,0 +1,2 @@
+debian/tmp/etc/bitfield.d/cell.conf
+debian/tmp/etc/bitfield.d/powerpc.conf
diff --git a/debian/bitfield.install b/debian/bitfield.install
new file mode 100644 (file)
index 0000000..8cc39a5
--- /dev/null
@@ -0,0 +1,3 @@
+debian/tmp/usr/bin/bitfield
+debian/tmp/etc/bash_completion.d/bitfield
+debian/tmp/usr/share/vim/addons/syntax/bitfield.vim
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..a8ab327
--- /dev/null
@@ -0,0 +1,6 @@
+bitfield (0.0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Michael Neuling <mikey@neuling.org>  Tue, 21 Nov 2006 10:16:23 +1100
+
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..9184d2a
--- /dev/null
@@ -0,0 +1,17 @@
+Source: bitfield
+Section: unknown
+Priority: optional
+Maintainer: Michael Neuling <mikey@neuling.org>
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.7.2
+
+Package: bitfield
+Architecture: all
+Depends: python, python-pyparsing, bitfield-data
+Description: Break regsiters down into their bit fields
+ Break regsiters down into their bit fields
+
+Package: bitfield-data
+Architecture: all
+Description: Data for bitfield
+ Data for bitfield
diff --git a/debian/rules b/debian/rules
new file mode 100644 (file)
index 0000000..d81c5ce
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+
+#DEB_MAKE_CLEAN_TARGET   = clean
+#DEB_MAKE_BUILD_TARGET   = all
+DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/tmp/
+# no check for this software
+DEB_MAKE_CHECK_TARGET   =
+
+# example when changing environment variables is necessary
+#DEB_MAKE_ENVVARS        = CFLAGS="-pwet"