chiark / gitweb /
Debianization\!
authormdw <mdw>
Sun, 9 Nov 2003 13:48:43 +0000 (13:48 +0000)
committermdw <mdw>
Sun, 9 Nov 2003 13:48:43 +0000 (13:48 +0000)
.cvsignore
Makefile.am
debian/.cvsignore [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index 3b08a19..25ce188 100644 (file)
@@ -2,3 +2,4 @@ Makefile.in
 aclocal.m4
 build
 configure
+deb-build
index 36ae2a3..54a7a52 100644 (file)
@@ -1,6 +1,6 @@
 ## -*-Makefile-*-
 ##
-## $Id: Makefile.am,v 1.38 2003/10/12 14:54:18 mdw Exp $
+## $Id: Makefile.am,v 1.39 2003/11/09 13:48:43 mdw Exp $
 ##
 ## Building the distribution
 ##
@@ -29,6 +29,9 @@
 ##----- Revision history ----------------------------------------------------
 ##
 ## $Log: Makefile.am,v $
+## Revision 1.39  2003/11/09 13:48:43  mdw
+## Debianization\!
+##
 ## Revision 1.38  2003/10/12 14:54:18  mdw
 ## Version bump.
 ##
@@ -170,7 +173,8 @@ BUILT_SOURCES = crc32-tab.c
 crc32-tab.c: crc-mktab
        ./crc-mktab \
                -p0x04c11db7 -b32 -B8 -r \
-               -c -scrc32_table -icrc32.h -tuint32 -ocrc32-tab.c
+               -c -scrc32_table -icrc32.h -tuint32 -ocrc32-tab.c.new
+       mv crc32-tab.c.new crc32-tab.c
 
 crc_mktab_SOURCES = crc-mktab.c mdwopt.c quis.c pquis.c report.c str.c
 
@@ -282,6 +286,7 @@ uninstall-man:
 
 CLEANFILES = $(TEST_CLEAN) crc32-tab.c
 DISTCLEANFILES = libtool
-EXTRA_DIST = $(TEST_DIST) maninst
+EXTRA_DIST = $(TEST_DIST) maninst \
+       debian/rules debian/copyright debian/control debian/changelog
 
 ##----- That's all, folks ---------------------------------------------------
diff --git a/debian/.cvsignore b/debian/.cvsignore
new file mode 100644 (file)
index 0000000..9af7faf
--- /dev/null
@@ -0,0 +1 @@
+files mlib-dev tmp substvars *.debhelper
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..a1e1e35
--- /dev/null
@@ -0,0 +1,5 @@
+mlib (2.0.2) experimental; urgency=low
+
+  * Debianization!
+
+ -- Mark Wooding <mdw@nsict.org>  Sat,  8 Nov 2003 22:43:10 +0000
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..68fe492
--- /dev/null
@@ -0,0 +1,17 @@
+Source: mlib
+Section: libs
+Priority: extra
+Maintainer : Mark Wooding
+Standards-Version: 3.1.1
+
+Package: mlib
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: A library of miscellaneous stuff
+
+Package: mlib-dev
+Architecture: any
+Depends: mlib (= 2.0.2), libc6-dev
+Description: A library of miscellaneous stuff
+ This package contains the header files and static libraries needed to
+ compile programs which use mLib.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..eff6dd5
--- /dev/null
@@ -0,0 +1,16 @@
+mLib is copyright (c) 2003 Straylight/Edgeware
+
+mLib is free software; you can redistribute it and/or modify it under
+the terms of the GNU Library General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+
+mLib 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 Library General Public
+License for more details.
+
+You should have a copy of the GNU Library General Public License in
+/usr/share/common-licenses/LGPL-2; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..1d58528
--- /dev/null
@@ -0,0 +1,54 @@
+#! /usr/bin/make -f
+
+build:
+       rm -rf deb-build build; mkdir deb-build
+       cd deb-build; ../configure \
+               --prefix=/usr \
+               --mandir=/usr/share/man \
+               --libexecdir=/usr/lib
+       make -C deb-build
+       make -C deb-build check
+       touch build
+
+clean:
+       dh_clean
+       rm -rf deb-build build
+
+install: build
+       dh_clean
+       make -C deb-build install DESTDIR=`pwd`/debian/tmp
+       rm -f debian/tmp/usr/lib/*.la
+       mkdir -p debian/mlib-dev/usr/lib debian/mlib-dev/usr/share/man
+       mv debian/tmp/usr/share/man/man3 debian/mlib-dev/usr/share/man
+       mv debian/tmp/usr/lib/*.a debian/mlib-dev/usr/lib
+       mv debian/tmp/usr/lib/*.so debian/mlib-dev/usr/lib
+       mv debian/tmp/usr/include debian/mlib-dev/usr
+       dh_strip -a
+
+binary-indep:
+
+binary-arch: install
+       dh_testdir -a
+       dh_testroot -a
+       dh_makeshlibs -a
+       dh_fixperms -a
+       dh_installman -a
+       dh_compress -a
+       dh_installdocs -a
+       dh_shlibdeps -a
+       dh_gencontrol -a
+       dh_installdeb -a
+       dh_md5sums -a
+       dh_builddeb -a
+
+binary: binary-indep binary-arch
+
+source:
+       rm -rf deb-build/*.tar.gz deb-build/=deb=
+       make -C deb-build dist PACKAGE=mlib
+       mkdir deb-build/=deb=
+       cd deb-build/=deb=; tar xvfz ../*.tar.gz
+       cd ..; dpkg-source -i -b mLib/deb-build/=deb=/*
+       rm -rf deb-build/=deb=
+
+.PHONY: binary binary-arch binary-indep clean install