]> Nishi Git Mirror - dataworks.git/commitdiff
can build deb now
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Mon, 17 Jun 2024 00:24:08 +0000 (00:24 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Mon, 17 Jun 2024 00:24:08 +0000 (00:24 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@317 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Makefiles/deb.mk

index 3bf1eb0a618b5dc734103a3f448085c826b0401d..74410890fd784dec629971e8b4e395ecf99213fa 100644 (file)
@@ -1,3 +1,28 @@
 # $Id$
 
 .PHONY: ./Package/dataworks.deb
+
+./Package/dataworks.deb: no-doc
+       rm -rf workdir-deb
+       mkdir workdir-deb
+       mkdir workdir-deb/DEBIAN
+       mkdir -p workdir-deb/usr/lib
+       mkdir -p workdir-deb/usr/include
+       mkdir -p workdir-deb/usr/bin
+       cp Library/*.so workdir-deb/usr/lib/
+       cp Library/*.a workdir-deb/usr/lib/
+       cp Library/*.h workdir-deb/usr/include/
+       cp Client/dataworks workdir-deb/usr/bin/
+       cp Server/dataworks_server workdir-deb/usr/bin/
+       cp RemoteClient/dataworks_remote_client workdir-deb/usr/bin/
+       cd workdir-deb && find usr -type f | xargs md5sum > DEBIAN/md5sums
+       echo "Package: dataworks" > workdir-deb/DEBIAN/control
+       echo "Version: $(VERSION)" >> workdir-deb/DEBIAN/control
+       echo "Architecture: $(DEB_ARCH)" >> workdir-deb/DEBIAN/control
+       echo "Maintainer: Nishi <nishi@nishi.boats" >> workdir-deb/DEBIAN/control
+       echo "Depends: libc6 (>= 2.14)" >> workdir-deb/DEBIAN/control
+       echo "Homepage: http://nishi.boats/dataworks" >> workdir-deb/DEBIAN/control
+       echo "Installed-Size: `du -k workdir-deb/usr | cut -d"\t" -f1`" >> workdir-deb/DEBIAN/control
+       echo "Description: Simple DBMS written in C" >> workdir-deb/DEBIAN/control
+       fakeroot dpkg-deb --build workdir-deb $@
+       rm -rf workdir-deb