summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorOliver Tappe2007-06-15 17:10:01 +0200
committerOliver Tappe2007-06-15 17:10:01 +0200
commitefb225036e62ab95af6e5679011d112de4e4707d (patch)
tree5fc3672ea7549b4dd96071152b01be24b30b09ea /packaging
parent* simplified use of PATH-variables to only the top-level set, all the (diff)
downloadcore-efb225036e62ab95af6e5679011d112de4e4707d.tar.gz
core-efb225036e62ab95af6e5679011d112de4e4707d.tar.xz
core-efb225036e62ab95af6e5679011d112de4e4707d.zip
* moved builddebianpackage into 'packaging'-folder, adjusted accordingly
Felix: again, please shout if you see any problems. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1168 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/dpkg/builddebianpackage45
-rw-r--r--packaging/dpkg/default_files/control (renamed from packaging/default_files/control)0
-rwxr-xr-xpackaging/dpkg/default_files/deinstall.sh (renamed from packaging/default_files/deinstall.sh)0
-rwxr-xr-xpackaging/dpkg/default_files/install.sh (renamed from packaging/default_files/install.sh)0
-rw-r--r--packaging/dpkg/default_files/ld4-inst.1 (renamed from packaging/default_files/ld4-inst.1)0
-rw-r--r--packaging/dpkg/default_files/mkdxsinitrd.1 (renamed from packaging/default_files/mkdxsinitrd.1)0
-rwxr-xr-xpackaging/dpkg/default_files/postinst (renamed from packaging/default_files/postinst)0
-rwxr-xr-xpackaging/dpkg/default_files/prerm (renamed from packaging/default_files/prerm)0
8 files changed, 45 insertions, 0 deletions
diff --git a/packaging/dpkg/builddebianpackage b/packaging/dpkg/builddebianpackage
new file mode 100755
index 00000000..5f8bafbd
--- /dev/null
+++ b/packaging/dpkg/builddebianpackage
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# This script transforms the openslx project files to debians
+# binary package format .deb
+
+dpkg_deb=`which dpkg-deb`
+if [ -z "$dpkg_deb" ];then
+ echo "You need the program dpkg-deb (contained in package dpkg) to build a debian package"
+ exit
+fi
+
+# change into folder where we expect the Makefile:
+cd $(dirname $(readlink -f $0))/../..
+if [ ! -e ./Makefile ]; then
+ echo "There is no makefile in this programs directory (`pwd`)."
+ echo "Please run this script only embedded in the context of an openslx checkout."
+ exit
+fi
+
+export SLX_BUILD_PATH=/tmp/slx$$
+mkdir -p $SLX_BUILD_PATH
+# "make install" will install the slx software into $SLX_BUILD_PATH
+if make install; then
+ #Create Temporary working directory
+ mkdir -p $SLX_BUILD_PATH/DEBIAN
+ mkdir -p $SLX_BUILD_PATH/usr/share/man/man1
+ cp packaging/dpkg/default_files/control $SLX_BUILD_PATH/DEBIAN/
+ cp packaging/dpkg/default_files/prerm $SLX_BUILD_PATH/DEBIAN/
+ cp packaging/dpkg/default_files/postinst $SLX_BUILD_PATH/DEBIAN/
+ cp packaging/dpkg/default_files/*.1 $SLX_BUILD_PATH/usr/share/man/man1/
+ gzip -9 $SLX_BUILD_PATH/usr/share/man/man1/*
+
+ #Set permissions
+ find $SLX_BUILD_PATH -type d|xargs chmod 755
+
+ #Create the package
+ dpkg-deb --build $SLX_BUILD_PATH > /dev/null
+ . ./VERSIONS
+ cd packaging/dpkg
+ mv $SLX_BUILD_PATH.deb openslx_$OPENSLX_VERSION_STRING.deb
+ echo "Written 'openslx_$OPENSLX_VERSION_STRING.deb':"
+ ls -lh openslx_$OPENSLX_VERSION_STRING.deb
+fi
+#Clean up
+rm -rf $SLX_BUILD_PATH
diff --git a/packaging/default_files/control b/packaging/dpkg/default_files/control
index f4a8cec6..f4a8cec6 100644
--- a/packaging/default_files/control
+++ b/packaging/dpkg/default_files/control
diff --git a/packaging/default_files/deinstall.sh b/packaging/dpkg/default_files/deinstall.sh
index 6de275ac..6de275ac 100755
--- a/packaging/default_files/deinstall.sh
+++ b/packaging/dpkg/default_files/deinstall.sh
diff --git a/packaging/default_files/install.sh b/packaging/dpkg/default_files/install.sh
index cb090fa7..cb090fa7 100755
--- a/packaging/default_files/install.sh
+++ b/packaging/dpkg/default_files/install.sh
diff --git a/packaging/default_files/ld4-inst.1 b/packaging/dpkg/default_files/ld4-inst.1
index 9b32b744..9b32b744 100644
--- a/packaging/default_files/ld4-inst.1
+++ b/packaging/dpkg/default_files/ld4-inst.1
diff --git a/packaging/default_files/mkdxsinitrd.1 b/packaging/dpkg/default_files/mkdxsinitrd.1
index 4820aef7..4820aef7 100644
--- a/packaging/default_files/mkdxsinitrd.1
+++ b/packaging/dpkg/default_files/mkdxsinitrd.1
diff --git a/packaging/default_files/postinst b/packaging/dpkg/default_files/postinst
index daa52770..daa52770 100755
--- a/packaging/default_files/postinst
+++ b/packaging/dpkg/default_files/postinst
diff --git a/packaging/default_files/prerm b/packaging/dpkg/default_files/prerm
index 6798eb5f..6798eb5f 100755
--- a/packaging/default_files/prerm
+++ b/packaging/dpkg/default_files/prerm