summaryrefslogtreecommitdiffstats
path: root/xorg/debuild/debX11rdp.sh
diff options
context:
space:
mode:
authorGustavo Homem <gustavo@angulosolido.pt>2013-03-20 21:13:44 +0000
committerGustavo Homem <gustavo@angulosolido.pt>2013-03-20 21:13:44 +0000
commit9239b6e87ded6af7aafa4c82e270ba130f830620 (patch)
tree32888cb50c6d62fb72ab94183fea8930511a6139 /xorg/debuild/debX11rdp.sh
parentfbe1e2ab74189ad0bbf94ec715b36270f7c37b20 (diff)
downloadxrdp-proprietary-9239b6e87ded6af7aafa4c82e270ba130f830620.tar.gz
xrdp-proprietary-9239b6e87ded6af7aafa4c82e270ba130f830620.zip
prepare to package X11rdp on a single .deb
Diffstat (limited to 'xorg/debuild/debX11rdp.sh')
-rwxr-xr-xxorg/debuild/debX11rdp.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/xorg/debuild/debX11rdp.sh b/xorg/debuild/debX11rdp.sh
new file mode 100755
index 00000000..3e713926
--- /dev/null
+++ b/xorg/debuild/debX11rdp.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# receives version, release number and source directory as arguments
+
+VERSION=$1
+RELEASE=$2
+SRCDIR=$3
+PKGDEST=$4
+
+PACKDIR=x11rdp-files
+DESTDIR=$PACKDIR/opt
+NAME=x11rdp
+
+sed -i -e "s/DUMMYVERINFO/$VERSION-$RELEASE/" $PACKDIR/DEBIAN/control
+sed -i -e "s/DUMMYDIRINFO/$SRCDIR/" $PACKDIR/DEBIAN/postinst
+
+mkdir -p $DESTDIR
+cp -Rf $SRCDIR $DESTDIR
+dpkg-deb --build $PACKDIR $PKGDEST/${NAME}_$VERSION-$RELEASE.deb
+
+# revert to initial state
+rm -rf $DESTDIR
+sed -i -e "s/$VERSION-$RELEASE/DUMMYVERINFO/" $PACKDIR/DEBIAN/control
+sed -i -e "s/$SRCDIR/DUMMYDIRINFO/" $PACKDIR/DEBIAN/postinst