Commit 9000c00d authored by Mike Gabriel's avatar Mike Gabriel

Move all config files from $(srcbase)/debian/ into $(srcbase)/etc/ folder.

Affected packagings scripts: debian/roll-tarballs.sh debian/rules nx-libs.spec
parent 53329e60
...@@ -86,10 +86,6 @@ if [ "x$MODE" = "xfull" ]; then ...@@ -86,10 +86,6 @@ if [ "x$MODE" = "xfull" ]; then
cp -v debian/patches/$file doc/applied-patches cp -v debian/patches/$file doc/applied-patches
echo ${file##*/} >> doc/applied-patches/series echo ${file##*/} >> doc/applied-patches/series
done done
mkdir -p ./etc/
cp -v debian/rgb ./etc/
cp -v debian/nxagent.keyboard ./etc/
cp -v debian/x2goagent.keyboard ./etc/
else else
rm -Rf "nxcompshad"* rm -Rf "nxcompshad"*
rm -Rf "nxcompext"* rm -Rf "nxcompext"*
...@@ -101,8 +97,6 @@ else ...@@ -101,8 +97,6 @@ else
done done
fi fi
cp -v debian/COPYING.full+lite COPYING cp -v debian/COPYING.full+lite COPYING
cp -v debian/nxagent.keyboard nxagent.keyboard
cp -v debian/x2goagent.keyboard x2goagent.keyboard
# apply all patches shipped in debian/patches and create a copy of them that we ship with the tarball # apply all patches shipped in debian/patches and create a copy of them that we ship with the tarball
if [ -s "doc/applied-patches/series" ]; then if [ -s "doc/applied-patches/series" ]; then
...@@ -116,12 +110,6 @@ for f in $(ls README* 2>/dev/null); do ...@@ -116,12 +110,6 @@ for f in $(ls README* 2>/dev/null); do
mv -v $f doc/; mv -v $f doc/;
done done
if [ "$MODE" = "full" ]; then
# provide a default keystrokes.cfg file
mkdir -p etc
test -f etc/keystrokes.cfg || test -f debian/keystrokes.cfg && cp -v debian/keystrokes.cfg etc/keystrokes.cfg
fi
# remove folders that we do not want to roll into the tarball # remove folders that we do not want to roll into the tarball
rm -Rf ".pc/" rm -Rf ".pc/"
rm -Rf "debian/" rm -Rf "debian/"
......
...@@ -20,7 +20,6 @@ override_dh_auto_clean: ...@@ -20,7 +20,6 @@ override_dh_auto_clean:
override_dh_clean: override_dh_clean:
rm -f nx*/configure rm -f nx*/configure
. ./replace.sh; set -x; ls debian/*.install.in | while read file; do rm -f $$(string_rep $$file .install.in .install); done . ./replace.sh; set -x; ls debian/*.install.in | while read file; do rm -f $$(string_rep $$file .install.in .install); done
rm -fR etc/rgb etc/keystrokes.cfg etc/nxagent.keyboard etc/x2goagent.keyboard
rm -f debian/libnx-xinerama1.postinst rm -f debian/libnx-xinerama1.postinst
rm -fR .preserve/ rm -fR .preserve/
dh_clean dh_clean
...@@ -78,12 +77,6 @@ override_dh_auto_install: ...@@ -78,12 +77,6 @@ override_dh_auto_install:
override_dh_auto_build: override_dh_auto_build:
mkdir -p etc/
ln -s ../debian/keystrokes.cfg etc/keystrokes.cfg
ln -s ../debian/rgb etc/rgb
ln -s ../debian/nxagent.keyboard etc/nxagent.keyboard
ln -s ../debian/x2goagent.keyboard etc/x2goagent.keyboard
# let's prep the libnx-xinerama1.postinst script with the value of the build systems's DEB_BUILD_MULTIARCH variable # let's prep the libnx-xinerama1.postinst script with the value of the build systems's DEB_BUILD_MULTIARCH variable
sed debian/libnx-xinerama1.postinst.in -e 's/#DEB_BUILD_MULTIARCH#/$(DEB_BUILD_MULTIARCH)/' > debian/libnx-xinerama1.postinst sed debian/libnx-xinerama1.postinst.in -e 's/#DEB_BUILD_MULTIARCH#/$(DEB_BUILD_MULTIARCH)/' > debian/libnx-xinerama1.postinst
......
...@@ -659,14 +659,6 @@ information on NX. ...@@ -659,14 +659,6 @@ information on NX.
%prep %prep
%setup -q %setup -q
# copy files from the debian/ folder to designated places in the source tree,
# taken from roll-tarball.sh:
mkdir etc/
cp -v debian/keystrokes.cfg etc/keystrokes.cfg
cp -v debian/rgb etc/rgb
cp -v debian/nxagent.keyboard etc/nxagent.keyboard
cp -v debian/x2goagent.keyboard etc/x2goagent.keyboard
# remove build cruft that is in Git (also taken from roll-tarball.sh) # remove build cruft that is in Git (also taken from roll-tarball.sh)
rm -Rf nx*/configure nx*/autom4te.cache* rm -Rf nx*/configure nx*/autom4te.cache*
# Install into /usr # Install into /usr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment