Browse Source

lintian improvements

pull/19/head
6543 4 years ago
parent
commit
b0ce2cfa16
  1. 1
      DEBIAN/conffiles
  2. 2
      DEBIAN/control
  3. 29
      autogen.sh

1
DEBIAN/conffiles

@ -0,0 +1 @@
/etc/remaster/config.sample.cfg

2
DEBIAN/control

@ -4,7 +4,7 @@ Version: 1.9.3
Architecture: all
Maintainer: 6543 <6543@obermui.de>
Installed-Size: <SIZE>
Depends: squashfs-tools, xorriso, wget, sed, sendemail, bash
Depends: squashfs-tools, xorriso, wget, sed (>= 4.2), sendemail, bash (>= 4.3)
Suggests: nfs-kernel-server, isc-dhcp-server
Section: utils
Priority: optional

29
autogen.sh

@ -27,7 +27,10 @@ function copy() {
#changelog
mkdir -p build/usr/share/doc/remaster
cp -v changes/remaster.md build/usr/share/doc/remaster/changelog
gzip build/usr/share/doc/remaster/changelog
gzip --best build/usr/share/doc/remaster/changelog
}
function rights() {
echo ja
}

#config ...
@ -47,19 +50,37 @@ function set_libdir() {
#modes
function debug() {
clean

#prebuild
copy
set_rootdir "`pwd`/build"
set_libdir "`pwd`/build/usr/lib/remaster"
}
function install() {
#überprüfe auf root
[ "`id -u`" != "0" ] && { echo "Error start as root"; exit 1; }

#lösche alltes build dir
clean

#prebuild
copy
set_rootdir ""
set_libdir "/usr/lib/remaster"
#cp -f -r build/* /

#set owner
chown -r root:root build/

#install
cp -f -r build/* /
}
function build-deb() {
#überprüfe auf root
[ "`id -u`" != "0" ] && { echo "Error start as root"; exit 1; }

#lösche alltes build dir
clean

#prebuild
copy
set_rootdir ""
@ -70,10 +91,14 @@ function build-deb() {
cp -v -r -f DEBIAN build/
#create md5sums
find ./build -type f -exec md5sum {} \; | grep -v './build/DEBIAN' | sed 's/\.\/build\///g' > build/DEBIAN/md5sums

#set size
SIZE="`du --exclude=build/DEBIAN -c build/ | cut -f 1 | tail -n 1`"
sed -i "s/<SIZE>/$SIZE/g" build/DEBIAN/control

#set owner
chown -r root:root build/

##
#build deb
##

Loading…
Cancel
Save