diff options
Diffstat (limited to 'packaging/dpkg/builddebianpackage')
-rwxr-xr-x | packaging/dpkg/builddebianpackage | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/packaging/dpkg/builddebianpackage b/packaging/dpkg/builddebianpackage index 5f8bafbd..74b0a294 100755 --- a/packaging/dpkg/builddebianpackage +++ b/packaging/dpkg/builddebianpackage @@ -20,22 +20,25 @@ 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 +if make plain-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/* + cp packaging/dpkg/default_files/pre* $SLX_BUILD_PATH/DEBIAN/ + cp packaging/dpkg/default_files/post* $SLX_BUILD_PATH/DEBIAN/ + + . ./VERSIONS + + #update control file + sed -i -e "s/##version##/$OPENSLX_VERSION_STRING/" \ + -e "s/##size##/$(du -s $SLX_BUILD_PATH | awk '{print $1}')/" \ + $SLX_BUILD_PATH/DEBIAN/control #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':" |