File: 01_makefile

package info (click to toggle)
cryptcat 20031202-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 260 kB
  • ctags: 294
  • sloc: ansic: 1,360; cpp: 818; makefile: 98; sh: 60
file content (69 lines) | stat: -rw-r--r-- 2,025 bytes parent folder | download
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
#!/bin/sh -e
## DP: Debian conformance patch for the Debian pyca-package
## DP: This patch consists mainly of FHS (2.2) stuff
## Copyright @ 2003  by Lars Bahner <bahner@debian.org>

if [ $# -ne 1 ]; then
	echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
	exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

case "$1" in
       -patch) patch $patch_opts -p0 < $0;;
       -unpatch) patch $patch_opts -p0 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

@DPATCH@
--- Makefile.orig	2008-08-21 22:48:42.000000000 +0000
+++ Makefile	2008-08-21 22:51:09.000000000 +0000
@@ -5,18 +5,22 @@
 
 ### PREDEFINES
 
+# Added for Debian GNU/Linux
+DESTDIR = 
+BIN = $DESTDIR/usr/bin
+
 # DEFAULTS, possibly overridden by <systype> recursive call:
 # pick gcc if you'd rather , and/or do -g instead of -O if debugging
 # debugging
 # DFLAGS = -DTEST -DDEBUG
-DFLAGS = -DGAPING_SECURITY_HOLE
+DFLAGS = 
 CFLAGS = -O
 XFLAGS = 	# xtra cflags, set by systype targets
 XLIBS =		# xtra libs if necessary?
 # -Bstatic for sunos,  -static for gcc, etc.  You want this, trust me.
 STATIC =
 CC = cc $(CFLAGS)
-LD = $(CC) -s	# linker; defaults to stripped executables
+LD = $(CC) 	# linker; defaults to stripped executables no more
 o = o		# object extension
 
 ALL = cryptcat
@@ -68,7 +72,9 @@
 	make -e $(ALL) $(MFLAGS) XFLAGS='-DAIX'
 
 linux:
-	make -e $(ALL) $(MFLAGS) XFLAGS='-DLINUX' STATIC=-static
+# Linked dynamically for Debian
+#	make -e $(ALL) $(MFLAGS) XFLAGS='-DLINUX' STATIC=-static
+	make -e $(ALL) $(MFLAGS) XLIBS='-lstdc++' XFLAGS='-DLINUX'
 
 # irix 5.2, dunno 'bout earlier versions.  If STATIC='-non_shared' doesn't
 # work for you, null it out and yell at SGI for their STUPID default
@@ -129,3 +135,6 @@
 clean:
 	rm -f $(ALL) *.o *.obj
 
+#Added for Debian GNU/Linux
+install:	cryptcat
+		cp -a ./cryptcat $(DESTDIR)/usr/bin