blob: f2e44d17fd6806b87bd3ae1f662d081bf8f375a5 (
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
#!/bin/sh
set -eu
name=ucspi-tcp6
version=1.13.00
upname=${name}_$version.orig.tar.gz
srcname=$name-$version
rel_project_root=$name/$name-$version
abs_project_root=$name-$version/$rel_project_root
wget https://www.fehcom.de/ipnet/$name/$name-$version.tgz
ln -sf $name-$version.tgz $upname
tar -xf $upname
mv net $srcname
cd $srcname
debmake --email jannis@fehcom.de --fullname 'Jannis M. Hoffmann'
patch debian/control <<'END'
2c2
< Section: unknown
---
> Section: net
5c5
< Build-Depends: debhelper-compat (= 13)
---
> Build-Depends: debhelper-compat (= 13), dh-exec, libqlibs
7c7
< Homepage: <insert the upstream URL, if relevant>
---
> Homepage: https://www.fehcom.de/ipnet/ucspi-tcp6.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
rm -f $rel_project_root/conf-ld
\$(MAKE) -C $rel_project_root/src clean
rm -f $rel_project_root/src/home
override_dh_auto_configure:
echo "\$(CC) -Iinclude \`pkg-config -cflags qlibs\` \$(CFLAGS)" >$rel_project_root/conf-cc
echo \$(CC) >$rel_project_root/conf-ld
touch $rel_project_root/src/home
override_dh_auto_build:
\$(MAKE) -C $rel_project_root/src default
END
cat <<END >debian/manpages
$rel_project_root/man/*.1
$rel_project_root/man/*.5
END
cat <<END >debian/install
$rel_project_root/src/addcr usr/bin
$rel_project_root/src/argv0 usr/bin
$rel_project_root/src/date@ usr/bin
$rel_project_root/src/delcr usr/bin
$rel_project_root/src/finger@ usr/bin
$rel_project_root/src/fixcrio usr/bin
$rel_project_root/src/http@ usr/bin
$rel_project_root/src/mconnect usr/bin
$rel_project_root/src/rblsmtpd usr/bin
$rel_project_root/src/recordio usr/bin
$rel_project_root/src/tcpcat usr/bin
$rel_project_root/src/tcpclient usr/bin
$rel_project_root/src/tcprules usr/bin
$rel_project_root/src/tcprulescheck usr/bin
$rel_project_root/src/tcpserver usr/bin
$rel_project_root/src/who@ usr/bin
END
cat <<END >debian/clean
$rel_project_root/src/ip4_bit.o
$rel_project_root/src/ip6_bit.o
$rel_project_root/src/remoteinfo.o
$rel_project_root/src/rules.o
$rel_project_root/src/argv0
$rel_project_root/src/argv0.o
$rel_project_root/src/commands.o
$rel_project_root/src/rblsmtpd
$rel_project_root/src/rblsmtpd.o
$rel_project_root/src/date@
$rel_project_root/src/finger@
$rel_project_root/src/http@
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.
--- /dev/null
+++ $abs_project_root/src/home
@@ -0,0 +0,1 @@
+
--- $abs_project_root/conf-cc
+++ /dev/null
@@ -0,3 +0,0 @@
-cc -O2 -g -Wall -I\`head -1 ../conf-qlibs\`/include
-
-This will be used to compile .c files.
--- $abs_project_root/conf-ld
+++ /dev/null
@@ -0,3 +0,0 @@
-cc -s -L\`head -1 ../conf-qlibs\`
-
-This will be used to link .o files into an executable.
END
printf 000-conf.patch >>debian/patches/series
rm debian/source/control debian/tests/control
|