From ec7d8680084c794357d0786767eda903d9c19e26 Mon Sep 17 00:00:00 2001 From: Gustavo Homem Date: Wed, 20 Mar 2013 21:41:56 +0000 Subject: [PATCH] improve packaging for X11RDP --- xorg/debuild/debX11rdp.sh | 5 +++-- xorg/debuild/x11rdp-files/DEBIAN/postinst | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xorg/debuild/debX11rdp.sh b/xorg/debuild/debX11rdp.sh index 3e713926..dd80cbe9 100755 --- a/xorg/debuild/debX11rdp.sh +++ b/xorg/debuild/debX11rdp.sh @@ -12,7 +12,8 @@ DESTDIR=$PACKDIR/opt NAME=x11rdp sed -i -e "s/DUMMYVERINFO/$VERSION-$RELEASE/" $PACKDIR/DEBIAN/control -sed -i -e "s/DUMMYDIRINFO/$SRCDIR/" $PACKDIR/DEBIAN/postinst +# need a different delimiter, since it has a path +sed -i -e "s,DUMMYDIRINFO,$SRCDIR," $PACKDIR/DEBIAN/postinst mkdir -p $DESTDIR cp -Rf $SRCDIR $DESTDIR @@ -21,4 +22,4 @@ 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 +sed -i -e "s,$SRCDIR,DUMMYDIRINFO," $PACKDIR/DEBIAN/postinst diff --git a/xorg/debuild/x11rdp-files/DEBIAN/postinst b/xorg/debuild/x11rdp-files/DEBIAN/postinst index b44dc212..241103af 100755 --- a/xorg/debuild/x11rdp-files/DEBIAN/postinst +++ b/xorg/debuild/x11rdp-files/DEBIAN/postinst @@ -1,6 +1,6 @@ #!/bin/bash -X11DIR=/opt/X11rdp +X11DIR=DUMMYDIRINFO # make the /usr/bin/X11rdp symbolic link if it doesn't exist... if [ ! -e /usr/bin/X11rdp ]