tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
wraith: 1.4.6 -> 1.4.7
Kranium Gikos Mendoza
9 years ago
9470b287
4b62054f
+65
-6
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
irc
wraith
configure.patch
default.nix
+58
pkgs/applications/networking/irc/wraith/configure.patch
···
1
1
+
--- a/configure
2
2
+
+++ b/configure
3
3
+
@@ -6029,53 +6029,8 @@
4
4
+
#AC_CHECK_HEADERS(zlib.h)
5
5
+
#EGG_CHECK_ZLIB
6
6
+
7
7
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
8
8
+
-$as_echo_n "checking for path to OpenSSL... " >&6; }
9
9
+
-
10
10
+
-
11
11
+
-# Check whether --with-openssl was given.
12
12
+
-if test "${with_openssl+set}" = set; then :
13
13
+
- withval=$with_openssl; with_openssl_path=$withval
14
14
+
-else
15
15
+
- with_openssl_path=auto
16
16
+
-fi
17
17
+
-
18
18
+
-
19
19
+
-
20
20
+
-cf_openssl_basedir=""
21
21
+
-if test "$with_openssl_path" != "auto"; then
22
22
+
- cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
23
23
+
-else
24
24
+
- for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
25
25
+
- if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
26
26
+
- cf_openssl_basedir="${dirs}"
27
27
+
- break
28
28
+
- fi
29
29
+
- done
30
30
+
- unset dirs
31
31
+
-fi
32
32
+
-if test ! -z "$cf_openssl_basedir"; then
33
33
+
- if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
34
34
+
- SSL_INCLUDES="-I${cf_openssl_basedir}/include"
35
35
+
- SSL_LIBS="-L${cf_openssl_basedir}/lib"
36
36
+
- else
37
37
+
- cf_openssl_basedir=""
38
38
+
- fi
39
39
+
-else
40
40
+
- if test -f "/usr/include/openssl/opensslv.h" ; then
41
41
+
- cf_openssl_basedir="/usr"
42
42
+
- fi
43
43
+
-fi
44
44
+
-
45
45
+
-if test ! -z "$cf_openssl_basedir"; then
46
46
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
47
47
+
-$as_echo "$cf_openssl_basedir" >&6; }
48
48
+
-else
49
49
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
50
50
+
-$as_echo "not found" >&6; }
51
51
+
- as_fn_error 1 "OpenSSL is required." "$LINENO" 5
52
52
+
-fi
53
53
+
-unset cf_openssl_basedir
54
54
+
+SSL_INCLUDES="-I@openssl.dev@/include"
55
55
+
+SSL_LIBS="-L@openssl.out@/lib"
56
56
+
57
57
+
save_CXX="$CXX"
58
58
+
CXX="$CXX $SSL_INCLUDES"
+7
-6
pkgs/applications/networking/irc/wraith/default.nix
···
5
5
6
6
mkDerivation rec {
7
7
name = "wraith-${version}";
8
8
-
version = "1.4.6";
8
8
+
version = "1.4.7";
9
9
src = fetchurl {
10
10
url = "mirror://sourceforge/wraithbotpack/wraith-v${version}.tar.gz";
11
11
-
sha256 = "0vb2hbjmwh040f5yhxvwcfxvgxa0q9zdy9vvddydn8zn782d7wl8";
11
11
+
sha256 = "0h6liac5y7im0jfm2sj18mibvib7d1l727fjs82irsjj1v9kif3j";
12
12
};
13
13
buildInputs = [ openssl ];
14
14
-
patches = [ ./dlopen.patch ];
14
14
+
patches = [ ./configure.patch ./dlopen.patch ];
15
15
postPatch = ''
16
16
-
substituteInPlace src/libssl.cc --subst-var-by openssl ${openssl}
17
17
-
substituteInPlace src/libcrypto.cc --subst-var-by openssl ${openssl}
16
16
+
substituteInPlace configure --subst-var-by openssl.dev ${openssl.dev} \
17
17
+
--subst-var-by openssl.out ${openssl.out}
18
18
+
substituteInPlace src/libssl.cc --subst-var-by openssl ${openssl.out}
19
19
+
substituteInPlace src/libcrypto.cc --subst-var-by openssl ${openssl.out}
18
20
'';
19
19
-
configureFlags = "--with-openssl=${openssl.dev}";
20
21
installPhase = ''
21
22
mkdir -p $out/bin
22
23
cp -a wraith $out/bin/wraith