3
0
Fork 0
forked from mirrors/nixpkgs

popa3d: customize for use on NixOS

This commit is contained in:
Peter Simons 2012-09-19 01:27:00 +02:00
parent 7ba33d813e
commit d23aef5432
4 changed files with 51 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, pkgconfig, openssl, lua5, curl, readline, bison, expat}:
{ stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec {
@ -9,7 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "0zvspgnlrx4jhhkb5b1p280nsf9d558jijgpvwfyvdp4q4v460z7";
};
configurePhase = ''makeFlags="LIBS=-lcrypt PREFIX=$out MANDIR=$out/share/man"'';
buildInputs = [ openssl ];
patches = [ ./fix-mail-spool-path.patch ./use-openssl.patch ./use-glibc-crypt.patch ];
configurePhase = ''makeFlags="PREFIX=$out MANDIR=$out/share/man"'';
meta = {
homepage = "http://www.openwall.com/popa3d/";

View file

@ -0,0 +1,12 @@
diff -ubr popa3d-1.0.2-orig/params.h popa3d-1.0.2/params.h
--- popa3d-1.0.2-orig/params.h 2012-09-19 01:19:56.698098130 +0200
+++ popa3d-1.0.2/params.h 2012-09-19 01:21:13.748065132 +0200
@@ -191,7 +191,7 @@
*
* #undef this for qmail-style $HOME/Mailbox mailboxes.
*/
-#define MAIL_SPOOL_PATH "/var/mail"
+#define MAIL_SPOOL_PATH "/var/spool/mail"
#ifndef MAIL_SPOOL_PATH
/*

View file

@ -0,0 +1,12 @@
diff -ubr popa3d-1.0.2-orig/Makefile popa3d-1.0.2/Makefile
--- popa3d-1.0.2-orig/Makefile 2012-09-19 01:19:56.698098130 +0200
+++ popa3d-1.0.2/Makefile 2012-09-19 01:24:33.871750473 +0200
@@ -9,7 +9,7 @@
LDFLAGS = -s
LIBS =
# Linux with glibc, FreeBSD, NetBSD
-#LIBS += -lcrypt
+LIBS += -lcrypt
# HP-UX trusted system
#LIBS += -lsec
# Solaris (POP_STANDALONE, POP_VIRTUAL)

View file

@ -0,0 +1,21 @@
diff -ubr popa3d-1.0.2-orig/Makefile popa3d-1.0.2/Makefile
--- popa3d-1.0.2-orig/Makefile 2012-09-19 01:19:56.698098130 +0200
+++ popa3d-1.0.2/Makefile 2012-09-19 01:23:00.309636423 +0200
@@ -5,7 +5,7 @@
INSTALL = install -c
CFLAGS = -Wall -O2 -fomit-frame-pointer
# You may use OpenSSL's MD5 routines instead of the ones supplied here
-#CFLAGS += -DHAVE_OPENSSL
+CFLAGS += -DHAVE_OPENSSL
LDFLAGS = -s
LIBS =
# Linux with glibc, FreeBSD, NetBSD
@@ -21,7 +21,7 @@
# libwrap may also want this
#LIBS += -lnsl
# OpenSSL (-DHAVE_OPENSSL)
-#LIBS += -lcrypto
+LIBS += -lcrypto
DESTDIR =
PREFIX = /usr/local