#!/bin/sh set -euC name=ucspi-ssl version=0.13.01 upname=${name}_$version.orig.tar.gz srcname=$name-$version rel_project_root=superscript.com/net/$name-$version abs_project_root=$name-$version/$rel_project_root if ! [ -e $name-$version.tgz ] then wget https://www.fehcom.de/ipnet/$name/$name-$version.tgz ln -sf $name-$version.tgz $upname fi tar -xf $upname mv host $srcname cd $srcname debmake --email jannis@fehcom.de --fullname 'Jannis M. Hoffmann' -b ucspissl,libucspissl,libucspissl-dev patch debian/control <<'END' 2c2 < Section: unknown --- > Section: net 5c5 < Build-Depends: debhelper-compat (= 13) --- > Build-Depends: debhelper-compat (= 13), dh-exec, libqlibs, ucspi-tcp6, libssl-dev, libperl-dev 7c7 < Homepage: --- > Homepage: https://www.fehcom.de/ipnet/ucspi-ssl.html END cat <|debian/rules #!/usr/bin/make -f # You must remove unused comment lines for the released package. export DH_VERBOSE = 1 #export DEB_BUILD_MAINT_OPTIONS = hardening=+all #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed %: dh \$@ --buildsystem=none override_dh_auto_clean: rm -f $rel_project_root/conf-cc \$(MAKE) -C $rel_project_root/src clean override_dh_auto_configure: echo "\$(CC) \`pkg-config -cflags qlibs\` \$(CFLAGS)" >$rel_project_root/conf-cc override_dh_auto_build: \$(MAKE) -C $rel_project_root/src default END cat <>debian/ucspissl.manpages $rel_project_root/man/*.1 $rel_project_root/man/*.2 END cat <>debian/ucspissl.install $rel_project_root/src/https@ usr/bin $rel_project_root/src/sslcat usr/bin $rel_project_root/src/sslclient usr/bin $rel_project_root/src/sslconnect usr/bin $rel_project_root/src/sslhandle usr/bin $rel_project_root/src/sslserver usr/bin $rel_project_root/etc/dh2048.pem usr/share/ucspi-ssl END cat <|debian/libucspissl.install #!/usr/bin/dh-exec $rel_project_root/src/ucspissl.a => usr/lib/\${DEB_HOST_MULTIARCH}/libucspissl.a END chmod +x debian/libucspissl.install cat <>debian/libucspissl-dev.install $rel_project_root/src/ucspissl.h usr/include END cat <>debian/clean $rel_project_root/ip4_bit.o $rel_project_root/ip6_bit.o $rel_project_root/sslhandle $rel_project_root/hassgact.h $rel_project_root/hassgprm.h END cat <debian/patches/000-conf.patch Author: Jannis M. Hoffmann Description: Adjust build configuration so that the \`configure' step creates conf-XX files. --- $abs_project_root/conf-cc +++ /dev/null @@ -0,3 +0,0 @@ -cc -O2 -g -Wall - -# This will be used to compile .c files. END printf 000-conf.patch >>debian/patches/series rm debian/source/control debian/tests/control