Browse Source

updated 3 packages

dovecot-2.3.10.1-1

libmemcached-1.0.18-3

postfix-3.5.2-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12406 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 4 years ago
parent
commit
ad505f074c
3 changed files with 98 additions and 45 deletions
  1. 61 19
      d/dovecot/dovecot-vl.spec
  2. 32 24
      lib/libm/libmemcached/libmemcached-vl.spec
  3. 5 2
      p/postfix/postfix-vl.spec

+ 61 - 19
d/dovecot/dovecot-vl.spec

@@ -1,11 +1,4 @@
-Summary: Dovecot Secure imap server
-Summary(ja): Dovecot セキュア IMAP サーバ
-Name: dovecot
-Version: 2.3.10
-Release: 1%{?_dist_release}
-#dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2
-License: MIT and LGPLv2 and BSD with advertising
-Group: System Environment/Daemons
+%bcond_with systemd
 
 %define build_postgres 1
 %define build_mysql 1
@@ -19,8 +12,19 @@ Group: System Environment/Daemons
 # pop before smtp (drac)
 %define build_drac 0
 
-URL: http://www.dovecot.org/
+Summary: Dovecot Secure imap server
+Summary(ja): Dovecot セキュア IMAP サーバ
+Name: dovecot
+Version: 2.3.10.1
+Release: 1%{?_dist_release}%{?with_systemd:.systemd}
+Group: System Environment/Daemons
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: iwamoto
 
+#dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2
+License: MIT and LGPLv2 and BSD with advertising
+URL: http://www.dovecot.org/
 %global  shortver %(echo "%{version}" | perl -p -e 's/^([0-9]+\.[0-9]+).*$/\\1/')
 Source:  https://dovecot.org/releases/%{shortver}/%{name}-%{version}.tar.gz
 Source1: dovecot.init
@@ -46,10 +50,6 @@ Patch4: dovecot-2.2-mkcert-10years.patch
 Patch10: dovecot-2.3.0.1-libxcrypt.patch
 Patch11: dovecot-2.3.4-de42b54.patch
 
-Packager: iwamoto
-Vendor: Project Vine
-Distribution: Vine Linux
-
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: openssl-devel, pam-devel, zlib-devel
 BuildRequires: bzip2-devel, libcap-devel
@@ -63,10 +63,15 @@ BuildRequires: libxcrypt-devel
 # needs to require initscripts package
 Requires: initscripts
 Requires(pre): /usr/sbin/useradd
-Requires(post): /sbin/chkconfig, /usr/sbin/useradd, /sbin/chkconfig
+Requires(post): /usr/sbin/useradd
 Requires(preun): /usr/sbin/userdel, /usr/sbin/groupdel
+%if %{with systemd}
+%{?systemd_requires}
+%else
+Requires(post): /sbin/chkconfig, /sbin/chkconfig
 Requires(preun): /sbin/chkconfig, /sbin/service
 Requires(postun): /sbin/service
+%endif
 
 %if %{build_postgres}
 BuildRequires: libpq-devel
@@ -212,6 +217,9 @@ cp %{SOURCE110} .
     --with-zlib                  \
 %if %{build_ldap}
     --with-ldap=plugin		 \
+%endif
+%if %{with systemd}
+    --with-systemdsystemunitdir=%{_unitdir} \
 %endif
     --with-docs
 
@@ -264,8 +272,12 @@ popd
 
 # install -p -m 755 src/plugins/convert/convert-tool $RPM_BUILD_ROOT%{_libexecdir}/%{name}
 
+%if %{with systemd}
+install -p -D -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_tmpfilesdir}/dovecot.conf
+%else
 mkdir -p $RPM_BUILD_ROOT%{_initrddir}
 install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/dovecot
+%endif
 
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
 install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot
@@ -332,6 +344,13 @@ pushd doc
 #rm -f securecoding.txt thread-refs.txt
 popd
 
+
+%check
+make check
+cd dovecot-2.3-pigeonhole-%{pigeonholever}
+make check
+
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -346,7 +365,15 @@ useradd -r -g dovenull -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot's un
 exit 0
 
 %post
+%if %{with systemd}
+%systemd_post dovecot.service
+install -d -m 0755 -g dovecot -d /run/dovecot
+install -d -m 0755 -d /run/dovecot/empty
+install -d -m 0750 -g dovenull -d /run/dovecot/login
+install -d -m 0750 -g dovenull -d /run/dovecot/token-login
+%else
 /sbin/chkconfig --add %{name}
+%endif
 # generate the ssl certificates
 if [ ! -f %{ssldir}/certs/%{name}.pem ]; then
     SSLDIR=%{ssldir} OPENSSLCONFIG=%{ssldir}/dovecot-openssl.cnf \
@@ -359,20 +386,24 @@ fi
 exit 0
 
 %preun
-if [ $1 = 0 ]; then
+%if %{with systemd}
+%systemd_preun dovecot.service dovecot.socket
+%else
+if [ $1 = 0 -o -x /bin/systemctl ]; then
     /sbin/service %{name} stop > /dev/null 2>&1 || :
     /sbin/chkconfig --del %{name} || :
 fi
+%endif
 
 %postun
+%if %{with systemd}
+%systemd_postun_with_restart dovecot.service
+%else
 if [ "$1" -ge "1" ]; then
     /sbin/service %{name} condrestart 2>/dev/null || :
 fi
+%endif
 
-%check
-make check
-cd dovecot-2.3-pigeonhole-%{pigeonholever}
-make check
 
 %files -f libs.filelist
 %defattr(-,root,root,-)
@@ -388,7 +419,14 @@ make check
 # %config(noreplace) %{_sysconfdir}/dovecot.conf
 
 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/dovecot
+%if %{with systemd}
+%{_unitdir}/dovecot.service
+%{_unitdir}/dovecot.socket
+%{_tmpfilesdir}/dovecot.conf
+%else
 %{_initrddir}/dovecot
+%endif
+
 %config(noreplace) %{_sysconfdir}/pam.d/dovecot
 %dir %{ssldir}
 %dir %{ssldir}/certs
@@ -492,6 +530,10 @@ make check
 %endif
 
 %changelog
+* Mon May 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.10.1-1
+- new upstream release.
+- added systemd support (disabled as default).
+
 * Sat Mar 07 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.10-1
 - new upstream release.
 - updated pigeonhole to 0.5.10.

+ 32 - 24
lib/libm/libmemcached/libmemcached-vl.spec

@@ -1,32 +1,37 @@
 %bcond_with tests
 
-Name:      libmemcached
-Summary:   Client library and command line tools for memcached server
-Version:   1.0.18
-Release:   2%{?_dist_release}
-License:   BSD
-Group:     System Environment/Libraries
-URL:       http://libmemcached.org/
+Name:           libmemcached
+Summary:        Client library and command line tools for memcached server
+Version:        1.0.18
+Release:        3%{?_dist_release}
+Group:          System Environment/Libraries
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       tomop
+
+License:        BSD
+URL:            http://libmemcached.org/
 # Original sources:
 #   http://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
 # The source tarball must be repackaged to remove the Hsieh hash
 # code, since the license is non-free.  When upgrading, download the new
 # source tarball, and run "./strip-hsieh.sh <version>" to produce the
 # "-exhsieh" tarball.
-Source0:   libmemcached-%{version}-exhsieh.tar.gz
-Source1:   strip-hsieh.sh
+Source0:        libmemcached-%{version}-exhsieh.tar.gz
+Source1:        strip-hsieh.sh
 
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: cyrus-sasl-devel
-BuildRequires: flex bison
+Patch0:         move-ax_confix_aux_dir.patch
+Patch1:         fix-gcc7-build.diff
+Patch2:         c++11.patch
+Patch3:         m4_pthread.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  cyrus-sasl-devel
+BuildRequires:  flex bison
 %if %{with tests}
-BuildRequires: memcached
+BuildRequires:  memcached
 %endif
-BuildRequires: libevent-devel
-
-Vendor: Project Vine
-Distribution: Vine Linux
-Packager: tomop
+BuildRequires:  libevent-devel
 
 %description
 libmemcached is a C/C++ client library and tools for the memcached server
@@ -65,6 +70,7 @@ you will need to install %{name}-devel.
 
 %prep
 %setup -q
+%autopatch -p1
 
 mkdir examples
 cp -p tests/*.{cc,h} examples/
@@ -78,10 +84,9 @@ sed -i -e s/ax_cv_sasl/ac_enable_sasl/ configure
 # fix library dependency
 # perl -pi -e 's/^(Libs:.+)$/$1 -lpthread/' ./support/libmemcached.pc.in
 
+
 %build
-aclocal
-autoconf
-automake --add-missing
+autoreconf -fiv
 
 # option --with-memcached=false to disable server binary check (as we don't run test)
 %configure --disable-static \
@@ -115,20 +120,19 @@ rm -rf %{buildroot}
 %post
 /sbin/ldconfig
 
-
 %postun
 /sbin/ldconfig
  
 
 %files
 %defattr (-,root,root,-) 
-%doc AUTHORS COPYING README THANKS TODO ChangeLog
+%license COPYING
+%doc AUTHORS README THANKS TODO ChangeLog
 %{_bindir}/mem*
 %exclude %{_libdir}/lib*.la
 %{_libdir}/lib*.so.*
 %{_mandir}/man1/mem*
 
-
 %files devel
 %defattr (-,root,root,-) 
 %doc examples
@@ -143,6 +147,10 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Tue May 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.18-3
+- rebuilt with current environment.
+- imported Patch0-3 from debian.
+
 * Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.18-2
 - rebuild with gcc-5.4.0
 

+ 5 - 2
p/postfix/postfix-vl.spec

@@ -32,8 +32,8 @@
 Summary:        Postfix Mail Transport Agent
 Summary(ja):    Postfix メールトランスポートエージェント
 Name:           postfix
-Version:        3.5.1
-Release:        2%{?_dist_release}%{?with_systemd:.systemd}
+Version:        3.5.2
+Release:        1%{?_dist_release}%{?with_systemd:.systemd}
 Group:          System Environment/Daemons
 Vendor:         Project Vine
 Distribution:   Vine Linux
@@ -556,6 +556,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_sysconfdir}/postfix/postfix-files.d/pcre
 
 %changelog
+* Mon May 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.5.2-1
+- new upstream release.
+
 * Fri Apr 24 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.5.1-2
 - rebuilt with icu67.