blob: fc59be00d376d596b33d4619a2e1d119ffd07dd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
#!/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: <insert the upstream URL, if relevant>
---
> Homepage: https://www.fehcom.de/ipnet/ucspi-ssl.html
END
cat <<END >|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 <<END >>debian/ucspissl.manpages
$rel_project_root/man/*.1
$rel_project_root/man/*.2
END
cat <<END >>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 <<END >|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 <<END >>debian/libucspissl-dev.install
$rel_project_root/src/ucspissl.h usr/include
END
cat <<END >>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 <<END >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
|