[packages/opensmtpd] fix chroot path

glen glen at pld-linux.org
Sun Nov 3 00:22:25 CET 2013


commit 03886c2625d82dbc6b8ba7339a096ef21ffe3f70
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 3 01:22:12 2013 +0200

    fix chroot path

 chroot-path.patch | 11 +++++++++++
 opensmtpd.spec    |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/opensmtpd.spec b/opensmtpd.spec
index 3595941..d77b130 100644
--- a/opensmtpd.spec
+++ b/opensmtpd.spec
@@ -4,7 +4,7 @@
 # Conditional build:
 %bcond_without	pam		# build without PAM support
 
-%define	rel	0.1
+%define	rel	0.2
 %define	prerelease	201310231634
 Summary:	Free implementation of the server-side SMTP protocol as defined by RFC 5321
 Name:		opensmtpd
@@ -19,6 +19,7 @@ Source1:	%{name}.service
 Source2:	%{name}.init
 Source3:	%{name}.pam
 Source4:	aliases
+Patch0:		chroot-path.patch
 URL:		http://www.opensmtpd.org/
 BuildRequires:	automake
 BuildRequires:	bison
@@ -61,6 +62,7 @@ re-usable by everyone under an ISC license.
 
 %prep
 %setup -q %{?prerelease: -n %{name}-%{prerelease}p1}
+%patch0 -p1
 
 %build
 %configure \
diff --git a/chroot-path.patch b/chroot-path.patch
new file mode 100644
index 0000000..5947f24
--- /dev/null
+++ b/chroot-path.patch
@@ -0,0 +1,11 @@
+--- opensmtpd-201310231634p1/smtpd/smtpd-defines.h~	2013-10-23 16:41:36.000000000 +0300
++++ opensmtpd-201310231634p1/smtpd/smtpd-defines.h	2013-11-03 01:19:09.536801945 +0200
+@@ -31,7 +31,7 @@
+ #ifndef SMTPD_USER
+ #define SMTPD_USER		 "_smtpd"
+ #endif
+-#define PATH_CHROOT		"/var/empty"
++#define PATH_CHROOT		"/usr/share/empty"
+ #ifndef SMTPD_QUEUE_USER
+ #define SMTPD_QUEUE_USER	 "_smtpq"
+ #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opensmtpd.git/commitdiff/03886c2625d82dbc6b8ba7339a096ef21ffe3f70



More information about the pld-cvs-commit mailing list