Hello community,

here is the log from the commit of package proftpd for openSUSE:Factory checked 
in at 2012-09-01 21:58:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/proftpd (Old)
 and      /work/SRC/openSUSE:Factory/.proftpd.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "proftpd", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/proftpd/proftpd.changes  2012-08-15 
11:20:40.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.proftpd.new/proftpd.changes     2012-09-01 
21:58:21.000000000 +0200
@@ -1,0 +2,12 @@
+Thu Aug 30 17:33:30 UTC 2012 - [email protected]
+
+- Disable ident lookups, this protocol is totally obsolete
+ and dangerous. (add --disable-ident)
+- Fix debug info generation ( add --disable-strip) 
+
+-------------------------------------------------------------------
+Wed Aug 29 21:51:49 UTC 2012 - [email protected]
+
+- Add systemd unit 
+
+-------------------------------------------------------------------

New:
----
  proftpd.service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ proftpd.spec ++++++
--- /var/tmp/diff_new_pack.iwwArm/_old  2012-09-01 21:58:22.000000000 +0200
+++ /var/tmp/diff_new_pack.iwwArm/_new  2012-09-01 21:58:22.000000000 +0200
@@ -29,6 +29,7 @@
 Source1:        
ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}.tar.gz.asc
 Source11:       %{name}.init
 Source12:       %{name}.passwd
+Source13:       %{name}.service
 #PATCH-FIX-openSUSE: pam, logrotate, xinet
 Patch100:       %{name}-1.3.4a-dist.patch
 #PATCH-FIX-openSUSE: provide a useful default config
@@ -60,6 +61,12 @@
 Recommends:     %{name}-lang
 %endif
 
+%if 0%{?suse_version} >= 1210
+BuildRequires:  systemd
+%{?systemd_requires}
+%define has_systemd 1
+%endif
+
 %description
 ProFTPD is a highly configurable FTP daemon for Unix and Unix-like
 operating systems.  See the README.ports file for more details about
@@ -134,9 +141,9 @@
 
 %build
 PROFTPD_SHARED_MODS="$(for spec_mod in $(find contrib -name mod_\*.c); do echo 
"$(basename ${spec_mod%%.c})"; done | tr '\n' ':' | sed -e 's|:$||')"
-export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED"
+export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -DLDAP_DEPRECATED"
 export CXXFLAGS="$CFLAGS"
-%configure \
+%configure --disable-static --with-pic \
     --bindir=%{_sbindir} \
     --libexecdir=%{_libdir}/%{name} \
     --sysconfdir=%{_sysconfdir}/%{name} \
@@ -150,7 +157,9 @@
     --enable-openssl \
     --with-lastlog \
     --with-includes="%{_includedir}/mysql:%{_includedir}/pgsql" \
-    --with-shared="${PROFTPD_SHARED_MODS}"
+    --with-shared="${PROFTPD_SHARED_MODS}" \
+    --disable-ident \
+    --disable-strip 
 
 #    --enable-memcache \
 %{__make} %{?_smp_mflags}
@@ -173,17 +182,28 @@
 %{__install} -m 0644 %{S:12} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/auth/passwd
 %{__install} -d -m 0750 $RPM_BUILD_ROOT/var/log/%{name}
 
+%if 0%{?has_systemd}
+%{__install} -D -m 0644 %{S:13} %{buildroot}%{_unitdir}/%{name}.service
+%endif
+
 %find_lang %{name}
 
 %pre
 # on `rpm -ivh` PARAM is 1
 # on `rpm -Uvh` PARAM is 2
 #if [ "$1" = "1" ]; then
+%if 0%{?has_systemd}
+%service_add_pre %{name}.service
+%endif
 
 %preun
 # on `rpm -e` PARAM is 0
 %stop_on_removal proftpd
 
+%if 0%{?has_systemd}
+%service_del_preun %{name}.service
+%endif
+
 %post
 # on `rpm -ivh` PARAM is 1
 # on `rpm -Uvh` PARAM is 2
@@ -193,6 +213,10 @@
 #fi
 %{fillup_and_insserv -f proftpd}
 
+%if 0%{?has_systemd}
+%service_add_post %{name}.service
+%endif
+
 %postun
 # on `rpm -e` PARAM is 0
 if [ "$1" = "0" ]; then
@@ -200,6 +224,10 @@
 fi
 %restart_on_update proftpd
 
+%if 0%{?has_systemd}
+%service_del_postun %{name}.service
+%endif
+
 %clean
 %{__rm} -rf %{buildroot}
 
@@ -247,6 +275,9 @@
 %exclude %{_libdir}/%{name}/mod_sql_postgres.so
 %exclude %{_libdir}/%{name}/mod_radius.so
 %exclude %{_libdir}/%{name}/mod_sql_sqlite.so
+%if 0%{?has_systemd}
+%{_unitdir}/%{name}.service
+%endif
 
 %files devel
 %defattr(-,root,root,-)


++++++ proftpd.service ++++++
[Unit]
Description=ProFTPd FTP server
After=network.target remote-fs.target

[Service]
ExecStart=/usr/sbin/proftpd --nodaemon
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to