Revert "Merge pull request #9543 from NixOS/staging.post-15.06"
This reverts commitwip/yesmanf61176c539
, reversing changes made toa27ca029ee
. Conflicts: pkgs/development/libraries/ncurses/default.nix
parent
fe195af944
commit
741bf840da
@ -1,35 +0,0 @@ |
||||
{ stdenv, fetchurl, pkgs, jack ? pkgs.libjack2 }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "jackmix-0.5.2"; |
||||
src = fetchurl { |
||||
url = https://github.com/kampfschlaefer/jackmix/archive/v0.5.2.tar.gz; |
||||
sha256 = "18f5v7g66mgarhs476frvayhch7fy4nyjf2xivixc061ipn0m82j"; |
||||
}; |
||||
|
||||
buildInputs = [ |
||||
pkgs.pkgconfig |
||||
pkgs.scons |
||||
pkgs.kde4.qt4 |
||||
pkgs.lash |
||||
jack |
||||
]; |
||||
|
||||
buildPhase = '' |
||||
scons |
||||
''; |
||||
installPhase = '' |
||||
mkdir -p $out/bin |
||||
cp jackmix/jackmix $out/bin |
||||
''; |
||||
|
||||
meta = { |
||||
description = "Matrix-Mixer for the Jack-Audio-connection-Kit"; |
||||
homepage = http://www.arnoldarts.de/jackmix/; |
||||
license = stdenv.lib.licenses.gpl2; |
||||
maintainers = [ stdenv.lib.maintainers.kampfschlaefer ]; |
||||
platforms = stdenv.lib.platforms.linux; |
||||
}; |
||||
} |
||||
|
||||
|
@ -1,44 +0,0 @@ |
||||
{ stdenv, fetchurl, ncurses }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
version = "1.1.4"; |
||||
name = "iptraf-ng-${version}"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://fedorahosted.org/releases/i/p/iptraf-ng/${name}.tar.gz"; |
||||
sha256 = "02gb8z9h2s6s1ybyikywz7jgb1mafdx88hijfasv3khcgkq0q53r"; |
||||
}; |
||||
|
||||
buildInputs = [ ncurses ]; |
||||
|
||||
configurePhase = '' |
||||
./configure --prefix=$out/usr --sysconfdir=$out/etc \ |
||||
--localstatedir=$out/var --sbindir=$out/bin |
||||
''; |
||||
|
||||
meta = { |
||||
description = "A console-based network monitoring utility (fork of iptraf)"; |
||||
longDescription = '' |
||||
IPTraf-ng is a console-based network monitoring utility. IPTraf-ng |
||||
gathers data like TCP connection packet and byte counts, interface |
||||
statistics and activity indicators, TCP/UDP traffic breakdowns, and LAN |
||||
station packet and byte counts. IPTraf-ng features include an IP traffic |
||||
monitor which shows TCP flag information, packet and byte counts, ICMP |
||||
details, OSPF packet types, and oversized IP packet warnings; interface |
||||
statistics showing IP, TCP, UDP, ICMP, non-IP and other IP packet counts, |
||||
IP checksum errors, interface activity and packet size counts; a TCP and |
||||
UDP service monitor showing counts of incoming and outgoing packets for |
||||
common TCP and UDP application ports, a LAN statistics module that |
||||
discovers active hosts and displays statistics about their activity; TCP, |
||||
UDP and other protocol display filters so you can view just the traffic |
||||
you want; logging; support for Ethernet, FDDI, ISDN, SLIP, PPP, and |
||||
loopback interfaces; and utilization of the built-in raw socket interface |
||||
of the Linux kernel, so it can be used on a wide variety of supported |
||||
network cards. |
||||
''; |
||||
homepage = https://fedorahosted.org/iptraf-ng/; |
||||
license = stdenv.lib.licenses.gpl2; |
||||
platforms = stdenv.lib.platforms.linux; |
||||
maintainers = [ stdenv.lib.maintainers.devhell ]; |
||||
}; |
||||
} |
@ -0,0 +1,17 @@ |
||||
{ stdenv }: |
||||
|
||||
assert stdenv.isDarwin; |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "libunwind-native"; |
||||
|
||||
unpackPhase = ":"; |
||||
dontBuild = true; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/lib |
||||
cat /usr/lib/system/libunwind.dylib > $out/lib/libunwind.dylib |
||||
''; |
||||
|
||||
meta.platforms = stdenv.lib.platforms.darwin; |
||||
} |
@ -0,0 +1,46 @@ |
||||
https://bugs.gentoo.org/545114
|
||||
|
||||
extracted from the upstream change (which had many unrelated commits in one)
|
||||
|
||||
From 97bb4678dc03e753290b39bbff30ba2825df9517 Mon Sep 17 00:00:00 2001
|
||||
From: "Thomas E. Dickey" <dickey@invisible-island.net>
|
||||
Date: Sun, 7 Dec 2014 03:10:09 +0000
|
||||
Subject: [PATCH] ncurses 5.9 - patch 20141206
|
||||
|
||||
+ modify MKlib_gen.sh to work around change in development version of
|
||||
gcc introduced here:
|
||||
https://gcc.gnu.org/ml/gcc-patches/2014-06/msg02185.html
|
||||
https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00236.html
|
||||
(reports by Marcus Shawcroft, Maohui Lei).
|
||||
|
||||
diff --git a/ncurses/base/MKlib_gen.sh b/ncurses/base/MKlib_gen.sh
|
||||
index d8cc3c9..b91398c 100755
|
||||
--- a/ncurses/base/MKlib_gen.sh
|
||||
+++ b/ncurses/base/MKlib_gen.sh
|
||||
@@ -474,11 +474,22 @@ sed -n -f $ED1 \
|
||||
-e 's/gen_$//' \
|
||||
-e 's/ / /g' >>$TMP
|
||||
|
||||
+cat >$ED1 <<EOF
|
||||
+s/ / /g
|
||||
+s/^ //
|
||||
+s/ $//
|
||||
+s/P_NCURSES_BOOL/NCURSES_BOOL/g
|
||||
+EOF
|
||||
+
|
||||
+# A patch discussed here:
|
||||
+# https://gcc.gnu.org/ml/gcc-patches/2014-06/msg02185.html
|
||||
+# introduces spurious #line markers. Work around that by ignoring the system's
|
||||
+# attempt to define "bool" and using our own symbol here.
|
||||
+sed -e 's/bool/P_NCURSES_BOOL/g' $TMP > $ED2
|
||||
+cat $ED2 >$TMP
|
||||
+
|
||||
$preprocessor $TMP 2>/dev/null \
|
||||
-| sed \
|
||||
- -e 's/ / /g' \
|
||||
- -e 's/^ //' \
|
||||
- -e 's/_Bool/NCURSES_BOOL/g' \
|
||||
+| sed -f $ED1 \
|
||||
| $AWK -f $AW2 \
|
||||
| sed -f $ED3 \
|
||||
| sed \
|
@ -0,0 +1,84 @@ |
||||
{ stdenv, fetchurl, perl |
||||
, withCryptodev ? false, cryptodevHeaders }: |
||||
|
||||
with stdenv.lib; |
||||
let |
||||
opensslCrossSystem = attrByPath [ "openssl" "system" ] |
||||
(throw "openssl needs its platform name cross building" null) |
||||
stdenv.cross; |
||||
in |
||||
stdenv.mkDerivation rec { |
||||
name = "openssl-1.0.2d"; |
||||
|
||||
src = fetchurl { |
||||
urls = [ |
||||
"http://www.openssl.org/source/${name}.tar.gz" |
||||
"http://openssl.linux-mirror.org/source/${name}.tar.gz" |
||||
]; |
||||
sha1 = "d01d17b44663e8ffa6a33a5a30053779d9593c3d"; |
||||
}; |
||||
|
||||
patches = optional stdenv.isCygwin ./1.0.1-cygwin64.patch; |
||||
|
||||
nativeBuildInputs = [ perl ]; |
||||
buildInputs = stdenv.lib.optional withCryptodev cryptodevHeaders; |
||||
|
||||
# On x86_64-darwin, "./config" misdetects the system as |
||||
# "darwin-i386-cc". So specify the system type explicitly. |
||||
configureScript = |
||||
if stdenv.system == "x86_64-darwin" then "./Configure darwin64-x86_64-cc" |
||||
else if stdenv.system == "x86_64-solaris" then "./Configure solaris64-x86_64-gcc" |
||||
else "./config"; |
||||
|
||||
configureFlags = [ |
||||
"shared" |
||||
"--libdir=lib" |
||||
"--openssldir=etc/ssl" |
||||
] ++ stdenv.lib.optionals withCryptodev [ |
||||
"-DHAVE_CRYPTODEV" |
||||
"-DUSE_CRYPTODEV_DIGESTS" |
||||
]; |
||||
|
||||
makeFlags = [ |
||||
"MANDIR=$(out)/share/man" |
||||
]; |
||||
|
||||
# Parallel building is broken in OpenSSL. |
||||
enableParallelBuilding = false; |
||||
|
||||
postInstall = '' |
||||
# If we're building dynamic libraries, then don't install static |
||||
# libraries. |
||||
if [ -n "$(echo $out/lib/*.so $out/lib/*.dylib $out/lib/*.dll)" ]; then |
||||
rm "$out/lib/"*.a |
||||
fi |
||||
|
||||
# remove dependency on Perl at runtime |
||||
rm -r $out/etc/ssl/misc $out/bin/c_rehash |
||||
''; |
||||
|
||||
postFixup = '' |
||||
# Check to make sure we don't depend on perl |
||||
if grep -r '${perl}' $out; then |
||||
echo "Found an erroneous dependency on perl ^^^" >&2 |
||||
exit 1 |
||||
fi |
||||
''; |
||||
|
||||
crossAttrs = { |
||||
preConfigure='' |
||||
# It's configure does not like --build or --host |
||||
export configureFlags="${concatStringsSep " " (configureFlags ++ [ opensslCrossSystem ])}" |
||||
''; |
||||
|
||||
configureScript = "./Configure"; |
||||
}; |
||||
|
||||
meta = { |
||||
homepage = http://www.openssl.org/; |
||||
description = "A cryptographic library that implements the SSL and TLS protocols"; |
||||
platforms = stdenv.lib.platforms.all; |
||||
maintainers = [ stdenv.lib.maintainers.simons ]; |
||||
priority = 10; # resolves collision with ‘man-pages’ |
||||
}; |
||||
} |
@ -1,36 +0,0 @@ |
||||
{ stdenv, fetchurl, python, utillinux, openssl, http-parser, zlib, libuv }: |
||||
|
||||
let |
||||
version = "3.1.0"; |
||||
inherit (stdenv.lib) optional maintainers licenses platforms; |
||||
in stdenv.mkDerivation { |
||||
name = "iojs-${version}"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://iojs.org/dist/v${version}/iojs-v${version}.tar.gz"; |
||||
sha256 = "15qh5pscg3588hyf4yfhma34gjkg87v5i4xzxj804g6m52m6y727"; |
||||
}; |
||||
|
||||
prePatch = '' |
||||
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i configure |
||||
''; |
||||
|
||||
configureFlags = [ "--shared-openssl" "--shared-http-parser" "--shared-zlib" "--shared-libuv" ]; |
||||
|
||||
# iojs has --enable-static but no --disable-static. Automatically adding --disable-static |
||||
# causes configure to fail, so don't add --disable-static. |
||||
dontDisableStatic = true; |
||||
|
||||
buildInputs = [ python openssl http-parser zlib libuv ] ++ (optional stdenv.isLinux utillinux); |
||||
setupHook = ../nodejs/setup-hook.sh; |
||||
|
||||
passthru.interpreterName = "iojs"; |
||||
|
||||
meta = { |
||||
description = "A friendly fork of Node.js with an open governance model"; |
||||
homepage = https://iojs.org/; |
||||
license = licenses.mit; |
||||
platforms = platforms.linux; |
||||
maintainers = [ maintainers.havvy ]; |
||||
}; |
||||
} |
@ -1,24 +0,0 @@ |
||||
diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
|
||||
--- a/tools/gyp/pylib/gyp/xcode_emulation.py 2014-01-23 06:05:51.000000000 +0100
|
||||
+++ b/tools/gyp/pylib/gyp/xcode_emulation.py 2014-02-04 17:49:48.000000000 +0100
|
||||
@@ -1018,12 +1033,16 @@
|
||||
# Since the value returned by this function is only used when ARCHS is not
|
||||
# set, then on iOS we return "i386", as the default xcode project generator
|
||||
# does not set ARCHS if it is not set in the .gyp file.
|
||||
- if self.isIOS:
|
||||
+
|
||||
+ try:
|
||||
+ if self.isIOS:
|
||||
+ return 'i386'
|
||||
+ version, build = self._XcodeVersion()
|
||||
+ if version >= '0500':
|
||||
+ return 'x86_64'
|
||||
return 'i386'
|
||||
- version, build = self._XcodeVersion()
|
||||
- if version >= '0500':
|
||||
+ except:
|
||||
return 'x86_64'
|
||||
- return 'i386'
|
||||
|
||||
class MacPrefixHeader(object):
|
||||
"""A class that helps with emulating Xcode's GCC_PREFIX_HEADER feature.
|
@ -1,13 +0,0 @@ |
||||
diff --git a/configure b/configure
|
||||
index d199975..66d903b 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -734,7 +734,7 @@ def configure_library(lib, output):
|
||||
# libpath needs to be provided ahead libraries
|
||||
if pkg_libpath:
|
||||
output['libraries'] += (
|
||||
- filter(None, map(str.strip, pkg_cflags.split('-L'))))
|
||||
+ pkg_libpath.split())
|
||||
|
||||
default_libs = getattr(options, shared_lib + '_libname')
|
||||
default_libs = map('-l{0}'.format, default_libs.split(','))
|
@ -1,42 +0,0 @@ |
||||
{ stdenv, fetchgit, gcc, gmp, libsigsegv, openssl, automake, autoconf, ragel, |
||||
cmake, re2c, libtool, ncurses, perl, zlib, python }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
|
||||
name = "urbit-${version}"; |
||||
version = "2015.09.26"; |
||||
|
||||
src = fetchgit { |
||||
url = "https://github.com/urbit/urbit.git"; |
||||
rev = "c9592664c797b2dd74f26886528656f8a7058640"; |
||||
sha256 = "0sgrxnmpqh54mgar81wlb6gff8c0pc24p53xwxr448g5shvnzjx9"; |
||||
}; |
||||
|
||||
buildInputs = with stdenv.lib; [ |
||||
gcc gmp libsigsegv openssl automake autoconf ragel cmake re2c libtool |
||||
ncurses perl zlib python |
||||
]; |
||||
|
||||
configurePhase = '' |
||||
: |
||||
''; |
||||
|
||||
buildPhase = '' |
||||
sed -i 's/-lcurses/-lncurses/' Makefile |
||||
mkdir -p $out |
||||
cp -r . $out/ |
||||
cd $out |
||||
make |
||||
''; |
||||
|
||||
installPhase = '' |
||||
: |
||||
''; |
||||
|
||||
meta = with stdenv.lib; { |
||||
description = "an operating function"; |
||||
homepage = http://urbit.org/preview/~2015.9.25/materials; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ mudri ]; |
||||
}; |
||||
} |
@ -1,26 +0,0 @@ |
||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, systemd, glib, readline }: |
||||
|
||||
with stdenv.lib; |
||||
stdenv.mkDerivation rec { |
||||
name = "miraclecast-0.0-git-20151002"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "albfan"; |
||||
repo = "miraclecast"; |
||||
rev = "30b8c2d22391423f76ba582aaaa1e0936869103a"; |
||||
sha256 = "0i076n76kq64fayc7v06gr1853pk5r6ms86m57vd1xsjd0r9wyxd"; |
||||
}; |
||||
|
||||
# INFO: It is important to list 'systemd' first as for now miraclecast |
||||
# links against a customized systemd. Otherwise, a systemd package from |
||||
# a propagatedBuildInput could take precedence. |
||||
buildInputs = [ systemd autoreconfHook pkgconfig udev glib readline ]; |
||||
|
||||
meta = { |
||||
homepage = https://github.com/albfan/miraclecast; |
||||
description = "Connect external monitors via Wi-Fi"; |
||||
license = licenses.lgpl21Plus; |
||||
maintainers = with maintainers; [ tstrobel ]; |
||||
platforms = platforms.linux; |
||||
}; |
||||
} |
@ -1,22 +0,0 @@ |
||||
From 2bf6f08b2492cc04a2c39fdcb22a2d0c18963d1c Mon Sep 17 00:00:00 2001
|
||||
From: sonic414 <sonic414@gmail.com>
|
||||
Date: Tue, 28 Apr 2015 19:30:15 +0530
|
||||
Subject: [PATCH] strnicmp to strncasecmp in Linux 4.0.0
|
||||
|
||||
---
|
||||
nvidiabl-module.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/nvidiabl-module.c b/nvidiabl-module.c
|
||||
index b789ea4..b306579 100644
|
||||
--- a/nvidiabl-module.c
|
||||
+++ b/nvidiabl-module.c
|
||||
@@ -214,7 +214,7 @@ static int __init nvidiabl_init(void)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
|
||||
|
||||
for (iii = 0 ; iii < sizeof(backlight_type_ids) ; iii++) {
|
||||
- if (strnicmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
|
||||
+ if (strncasecmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
|
||||
props.type = backlight_type_ids[iii].type;
|
||||
printk(KERN_INFO "nvidiabl: backlight type is %s\n", backlight_type_ids[iii].id);
|
||||
}
|
@ -0,0 +1,26 @@ |
||||
diff --git a/com32/include/menu.h b/com32/include/menu.h
|
||||
index bc0182f..b0251e4 100644
|
||||
--- a/com32/include/menu.h
|
||||
+++ b/com32/include/menu.h
|
||||
@@ -195,7 +195,7 @@ void local_cursor_enable(bool);
|
||||
|
||||
static inline int my_isspace(char c)
|
||||
{
|
||||
- return (unsigned char)c <= ' ';
|
||||
+ return (unsigned char)c <= ' ' || (unsigned char)c == '\x7f';
|
||||
}
|
||||
|
||||
int my_isxdigit(char c);
|
||||
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
|
||||
index b7814be..a433fad 100644
|
||||
--- a/com32/menu/readconfig.c
|
||||
+++ b/com32/menu/readconfig.c
|
||||
@@ -299,7 +299,7 @@ static char *copy_sysappend_string(char *dst, const char *src)
|
||||
char c;
|
||||
|
||||
while ((c = *src++)) {
|
||||
- if (c <= ' ' && c == '\x7f') {
|
||||
+ if (my_isspace(c)) {
|
||||
if (!was_space)
|
||||
*dst++ = '_';
|
||||
was_space = true;
|
@ -1,79 +0,0 @@ |
||||
{ stdenv, fetchurl, openssl, libevent, libasr, |
||||
python2, pkgconfig, lua5, perl, mariadb, postgresql, sqlite, hiredis }: |
||||
stdenv.mkDerivation rec { |
||||
name = "opensmtpd-extras-${version}"; |
||||
version = "5.7.1"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://www.opensmtpd.org/archives/${name}.tar.gz"; |
||||
sha256 = "1kld4hxgz792s0cb2gl7m2n618ikzqkj88w5dhaxdrxg4x2c4vdm"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ pkgconfig ]; |
||||
buildInputs = [ openssl libevent |
||||
libasr python2 lua5 perl mariadb postgresql sqlite hiredis ]; |
||||
|
||||
configureFlags = [ |
||||
"--sysconfdir=/etc" |
||||
"--localstatedir=/var" |
||||
"--with-privsep-user=smtpd" |
||||
"--with-libevent-dir=${libevent}" |
||||
|
||||
"--with-filter-clamav" |
||||
"--with-filter-dkim-signer" |
||||
"--with-filter-dnsbl" |
||||
"--with-filter-monkey" |
||||
"--with-filter-pause" |
||||
"--with-filter-regex" |
||||
"--with-filter-spamassassin" |
||||
"--with-filter-stub" |
||||
"--with-filter-trace" |
||||
"--with-filter-void" |
||||
"--with-queue-null" |
||||
"--with-queue-ram" |
||||
"--with-queue-stub" |
||||
"--with-table-ldap" |
||||
"--with-table-socketmap" |
||||
"--with-table-passwd" |
||||
"--with-table-stub" |
||||
"--with-scheduler-ram" |
||||
"--with-scheduler-stub" |
||||
|
||||
] ++ stdenv.lib.optional (python2 != null) [ |
||||
"--with-python=${python2}" |
||||
"--with-filter-python" |
||||
"--with-queue-python" |
||||
"--with-table-python" |
||||
"--with-scheduler-python" |
||||
|
||||
] ++ stdenv.lib.optional (lua5 != null) [ |
||||
"--with-lua=${pkgconfig}" |
||||
"--with-filter-lua" |
||||
|
||||
] ++ stdenv.lib.optional (perl != null) [ |
||||
"--with-perl=${perl}" |
||||
"--with-filter-perl" |
||||
|
||||
] ++ stdenv.lib.optional (mariadb != null) [ |
||||
"--with-table-mysql" |
||||
|
||||
] ++ stdenv.lib.optional (postgresql != null) [ |
||||
"--with-table-postgres" |
||||
|
||||
] ++ stdenv.lib.optional (sqlite != null) [ |
||||
"--with-table-sqlite" |
||||
|
||||
] ++ stdenv.lib.optional (hiredis != null) [ |
||||
"--with-table-redis" |
||||
]; |
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional (hiredis != null) [ "-I${hiredis}/include/hiredis" ]; |
||||
|
||||
meta = with stdenv.lib; { |
||||
homepage = https://www.opensmtpd.org/; |
||||
description = "Extra plugins for the OpenSMTPD mail server"; |
||||
license = licenses.isc; |
||||
platforms = platforms.unix; |
||||
maintainers = with maintainers; [ gebner ]; |
||||
}; |
||||
} |
@ -1,76 +0,0 @@ |
||||
diff -Naur opensmtpd-5.7.1p1/smtpd/parse.y opensmtpd-5.7.1p1.patched/smtpd/parse.y
|
||||
--- opensmtpd-5.7.1p1/smtpd/parse.y 2015-06-30 10:13:34.000000000 +0200
|
||||
+++ opensmtpd-5.7.1p1.patched/smtpd/parse.y 2015-09-26 08:41:17.012472516 +0200
|
||||
@@ -2519,13 +2519,19 @@
|
||||
{
|
||||
struct filter_conf *f;
|
||||
char *path;
|
||||
+ const char *proc_path;
|
||||
|
||||
if (dict_get(&conf->sc_filters, name)) {
|
||||
yyerror("filter \"%s\" already defined", name);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
- if (asprintf(&path, "%s/filter-%s", PATH_LIBEXEC, prog) == -1) {
|
||||
+ proc_path = getenv("OPENSMTPD_PROC_PATH");
|
||||
+ if (proc_path == NULL) {
|
||||
+ proc_path = PATH_LIBEXEC;
|
||||
+ }
|
||||
+
|
||||
+ if (asprintf(&path, "%s/filter-%s", proc_path, prog) == -1) {
|
||||
yyerror("filter \"%s\" asprintf failed", name);
|
||||
return (0);
|
||||
}
|
||||
diff -Naur opensmtpd-5.7.1p1/smtpd/smtpd.c opensmtpd-5.7.1p1.patched/smtpd/smtpd.c
|
||||
--- opensmtpd-5.7.1p1/smtpd/smtpd.c 2015-06-30 10:13:34.000000000 +0200
|
||||
+++ opensmtpd-5.7.1p1.patched/smtpd/smtpd.c 2015-09-26 08:41:16.998472557 +0200
|
||||
@@ -854,6 +854,7 @@
|
||||
char path[PATH_MAX];
|
||||
char name[PATH_MAX];
|
||||
char *arg;
|
||||
+ char *proc_path;
|
||||
|
||||
if (strlcpy(name, conf, sizeof(name)) >= sizeof(name)) {
|
||||
log_warnx("warn: %s-proc: conf too long", key);
|
||||
@@ -864,7 +865,12 @@
|
||||
if (arg)
|
||||
*arg++ = '\0';
|
||||
|
||||
- if (snprintf(path, sizeof(path), PATH_LIBEXEC "/%s-%s", key, name) >=
|
||||
+ proc_path = getenv("OPENSMTPD_PROC_PATH");
|
||||
+ if (proc_path == NULL) {
|
||||
+ proc_path = PATH_LIBEXEC;
|
||||
+ }
|
||||
+
|
||||
+ if (snprintf(path, sizeof(path), "%s/%s-%s", proc_path, key, name) >=
|
||||
(ssize_t)sizeof(path)) {
|
||||
log_warn("warn: %s-proc: exec path too long", key);
|
||||
return (-1);
|
||||
diff -Naur opensmtpd-5.7.1p1/smtpd/table.c opensmtpd-5.7.1p1.patched/smtpd/table.c
|
||||
--- opensmtpd-5.7.1p1/smtpd/table.c 2015-06-30 10:13:34.000000000 +0200
|
||||
+++ opensmtpd-5.7.1p1.patched/smtpd/table.c 2015-09-26 08:41:17.005472536 +0200
|
||||
@@ -201,6 +201,7 @@
|
||||
struct table_backend *tb;
|
||||
char buf[LINE_MAX];
|
||||
char path[LINE_MAX];
|
||||
+ const char *proc_path;
|
||||
size_t n;
|
||||
struct stat sb;
|
||||
|
||||
@@ -215,8 +216,14 @@
|
||||
if (name && table_find(name, NULL))
|
||||
fatalx("table_create: table \"%s\" already defined", name);
|
||||
|
||||
+ proc_path = getenv("OPENSMTPD_PROC_PATH");
|
||||
+ if (proc_path == NULL) {
|
||||
+ proc_path = PATH_LIBEXEC;
|
||||
+ }
|
||||
+
|
||||
if ((tb = table_backend_lookup(backend)) == NULL) {
|
||||
- if ((size_t)snprintf(path, sizeof(path), PATH_LIBEXEC "/table-%s",
|
||||
+ if ((size_t)snprintf(path, sizeof(path), "%s/table-%s",
|
||||
+ proc_path,
|
||||
backend) >= sizeof(path)) {
|
||||
fatalx("table_create: path too long \""
|
||||
PATH_LIBEXEC "/table-%s\"", backend);
|
@ -1,28 +0,0 @@ |
||||
{ stdenv, fetchFromGitHub, rustPlatform }: |
||||
|
||||
with rustPlatform; |
||||
|
||||
buildRustPackage rec { |
||||
name = "heatseeker-${version}"; |
||||
version = "1.3.0"; |
||||
|
||||
depsSha256 = "03jap7myf85xgx9270sws8x57nl04a1wx8szrk9qx24s9vnnjcnh"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "rschmitt"; |
||||
repo = "heatseeker"; |
||||
rev = "v${version}"; |
||||
sha256 = "1xdvwgmh9lwv82hv1qg82bjv2iplnvva6lzbg7dyhbszhv7rhkbl"; |
||||
}; |
||||
|
||||
# some tests require a tty, this variable turns them off for Travis CI, |
||||
# which we can also make use of |
||||
TRAVIS= "true"; |
||||
|
||||
meta = with stdenv.lib; { |
||||
description = "A general-purpose fuzzy selector"; |
||||
homepage = https://github.com/rschmitt/heatseeker; |
||||
license = stdenv.lib.licenses.mit; |
||||
maintainers = [ maintainers.michaelpj ]; |
||||
}; |
||||
} |
@ -0,0 +1,65 @@ |
||||
http://pkgs.fedoraproject.org/cgit/openssh.git/commit/openssh-6.9p1-security-7.0.patch?h=f22&id=4776fad91e7e1f626f33e8c240d0ccecd663554d
|
||||
|
||||
diff --git a/sshpty.c b/sshpty.c
|
||||
index 7bb7641..15da8c6 100644
|
||||
--- a/sshpty.c
|
||||
+++ b/sshpty.c
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* $OpenBSD: sshpty.c,v 1.29 2014/09/03 18:55:07 djm Exp $ */
|
||||
+/* $OpenBSD: sshpty.c,v 1.30 2015/07/30 23:09:15 djm Exp $ */
|
||||
/*
|
||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||
@@ -197,7 +197,7 @@ pty_setowner(struct passwd *pw, const char *tty)
|
||||
/* Determine the group to make the owner of the tty. */
|
||||
grp = getgrnam("tty");
|
||||
gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;
|
||||
- mode = (grp != NULL) ? 0622 : 0600;
|
||||
+ mode = (grp != NULL) ? 0620 : 0600;
|
||||
|
||||
/*
|
||||
* Change owner and mode of the tty as required.
|
||||
diff --git a/monitor.c b/monitor.c
|
||||
index b410965..f1b873d 100644
|
||||
--- a/monitor.c
|
||||
+++ b/monitor.c
|
||||
@@ -1084,9 +1084,7 @@ extern KbdintDevice sshpam_device;
|
||||
int
|
||||
mm_answer_pam_init_ctx(int sock, Buffer *m)
|
||||
{
|
||||
-
|
||||
debug3("%s", __func__);
|
||||
- authctxt->user = buffer_get_string(m, NULL);
|
||||
sshpam_ctxt = (sshpam_device.init_ctx)(authctxt);
|
||||
sshpam_authok = NULL;
|
||||
buffer_clear(m);
|
||||
@@ -1166,14 +1166,16 @@ mm_answer_pam_respond(int sock, Buffer *m)
|
||||
int
|
||||
mm_answer_pam_free_ctx(int sock, Buffer *m)
|
||||
{
|
||||
+ int r = sshpam_authok != NULL && sshpam_authok == sshpam_ctxt;
|
||||
|
||||
debug3("%s", __func__);
|
||||
(sshpam_device.free_ctx)(sshpam_ctxt);
|
||||
+ sshpam_ctxt = sshpam_authok = NULL;
|
||||
buffer_clear(m);
|
||||
mm_request_send(sock, MONITOR_ANS_PAM_FREE_CTX, m);
|
||||
auth_method = "keyboard-interactive";
|
||||
auth_submethod = "pam";
|
||||
- return (sshpam_authok == sshpam_ctxt);
|
||||
+ return r;
|
||||
}
|
||||
#endif
|
||||
|
||||
diff --git a/monitor_wrap.c b/monitor_wrap.c
|
||||
index e6217b3..eac421b 100644
|
||||
--- a/monitor_wrap.c
|
||||
+++ b/monitor_wrap.c
|
||||
@@ -614,7 +614,6 @@ mm_sshpam_init_ctx(Authctxt *authctxt)
|
||||
|
||||
debug3("%s", __func__);
|
||||
buffer_init(&m);
|
||||
- buffer_put_cstring(&m, authctxt->user);
|
||||
mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_INIT_CTX, &m);
|
||||
debug3("%s: waiting for MONITOR_ANS_PAM_INIT_CTX", __func__);
|
||||
mm_request_receive_expect(pmonitor->m_recvfd, MONITOR_ANS_PAM_INIT_CTX, &m);
|
Loading…
Reference in new issue