Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-proftpd-133f
dba-proftpd-133f.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-proftpd-133f.spec of Package dba-proftpd-133f
%define real_name proftpd %define version 1.3.3f %define vers 133f %define prefix /DBA/ftp/PRO/%{version} %define with_exec 1 %define with_shaper 1 %define with_pg 1 Name: dba-proftpd-%{vers} Summary: Highly configurable GPL-licensed FTP server software License: GPL Group: Productivity/Networking/Ftp/Servers Version: %{version} Release: 1 Source0: ftp://ftp.proftpd.org/distrib/source/%{real_name}-%{version}.tar.bz2 Url: http://www.proftpd.org/ Source1: dba-proftpd-rpmlintrc Source2: %{real_name}.init Source3: %{real_name}.logrotate Source4: %{real_name}.init.centos Source5: http://www.castaglia.org/proftpd/modules/%{real_name}-mod-vroot-0.9.2.tar.gz Source6: http://www.thrallingpenguin.com/resources/mod_clamav-0.10.tar.gz AutoReqProv: on BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif #!BuildIgnore: dba-postgresql-839 dba-postgresql-842 dba-postgresql-845 dba-postgresql-846 #!BuildIgnore: dba-postgresql-901 dba-postgresql-902 dba-postgresql-904 dba-postgresql-910 #!BuildIgnore: dba-openssl-098o dba-openssl-098r BuildRequires: libacl-devel libattr-devel openssl-devel pam-devel unixODBC-devel %if 0%{?suse_version} BuildRequires: openldap2-devel tcpd-devel %if 0%{?sles_version} == 9 BuildRequires: mysql-devel mysql-shared sqlite-devel %else BuildRequires: mysql-devel krb5-devel libcap-devel sqlite-devel %endif %else # CentOS, RHEL %if 0%{?rhel_version} == 406 %define with_sqlite 0 %else BuildRequires: sqlite-devel %endif BuildRequires: mysql-devel krb5-devel libcap-devel BuildRequires: tcp_wrappers openldap-devel openldap mysql glibc-devel libgcc gcc gcc-c++ %if 0%{?fedora_version} >= 10 || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600 BuildRequires: tcp_wrappers-devel %endif %endif %description Highly configurable GPL-licensed FTP server software %if %{with_pg} %package postgresql Summary: Postgresql plugin for proftpd Group: Productivity/Networking/Ftp/Servers Requires: %{name} = %{version} Requires: postgresql-libs BuildRequires: postgresql-devel %description postgresql Postgresql plugin for proftpd %endif %prep %setup -q -n %{real_name}-%{version} -a 5 -a 6 # Copy mod_vroot source and documentation into place %{__cp} -p mod_vroot/mod_vroot.c contrib/ %{__cp} -p mod_vroot/mod_vroot.html doc/contrib/ %{__cp} -p mod_clamav-0.10/mod_clamav.* contrib/ %build %if 0%{?sles_version} != 9 %if 0%{?with_sqlite} PROFTPD_SHARED_MODS="$(for spec_mod in mod_load $(find contrib -name mod_\*.c); do echo "$(basename ${spec_mod%%.c})"; done | tr '\n' ':' | sed -e 's|:$||')" %else PROFTPD_SHARED_MODS="$(for spec_mod in mod_load $(find contrib -name mod_\*.c|grep -v sqlite); do echo "$(basename ${spec_mod%%.c})"; done | tr '\n' ':' | sed -e 's|:$||')" %endif %else PROFTPD_SHARED_MODS="$(for spec_mod in mod_load $(find contrib -name mod_\*.c|grep -v sqlite); do echo "$(basename ${spec_mod%%.c})"; done | tr '\n' ':' | sed -e 's|:$||')" %endif # --enable-devel=coredump,nodaemon,nofork \ ./configure \ --prefix=%{prefix} \ --enable-sendfile \ --enable-ipv6 \ --enable-ctrls \ --enable-facl \ --enable-dso \ --enable-nls \ --with-includes="%{_includedir}/mysql:%{_includedir}/pgsql" \ %if 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} --with-libraries="%{_libdir}/mysql" \ %endif --with-shared="${PROFTPD_SHARED_MODS}" \ LIBS=-lcrypto %{__make} %install %if 0%{?suse_version} %makeinstall INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn` %else make DESTDIR=%{buildroot} install INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn` %endif %{__mkdir_p} %{buildroot}%{prefix} %{__mkdir_p} %{buildroot}%{prefix}/conf %{__mkdir_p} %{buildroot}%{prefix}/samples # %{__rm} -fv %{buildroot}%{_libdir}/%{real_name}/*.a %{__cp} -v contrib/dist/rpm/xinetd %{buildroot}%{prefix}/samples %{__cp} -v contrib/dist/rpm/proftpd.logrotate %{buildroot}%{prefix}/samples %{__cp} -v sample-configurations/*conf %{buildroot}%{prefix}/samples # %{__install} -D -m 0644 contrib/dist/rpm/xinetd %{buildroot}%{prefix}/samples # %{__install} -D -m 0644 contrib/dist/rpm/proftpd.logrotate %{buildroot}%{prefix}/samples # %{__install} -D -m 0644 sample-configurations/*conf %{buildroot}%{prefix}/samples # %{__install} -D -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/logrotate.d/%{real_name} %if 0%{?suse_version} %{__cp} -v %{S:2} %{buildroot}%{prefix}/samples # %{__install} -D -m 0755 %{S:2} %{buildroot}%{prefix}/samples %else %{__cp} -v %{S:4} %{buildroot}%{prefix}/samples # %{__install} -D -m 0755 %{S:4} %{buildroot}%{prefix}/samples %endif # %{__rm} -rv %{buildroot}/%{prefix}/libexec/*.a %{__rm} -rv %{buildroot}/%{prefix}/libexec/*.la %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %if %{with_pg} %files postgresql %defattr(-,root,root) %{prefix}/libexec/mod_sql_postgres.so %endif %files %defattr(-,root,root) %dir %{prefix} %{prefix}/bin %{prefix}/etc %{prefix}/include %{prefix}/lib %{prefix}/libexec %exclude %{prefix}/libexec/mod_sql_postgres.so %{prefix}/samples %{prefix}/sbin %{prefix}/share %changelog * Wed Oct 26 2011 Holger Manthey <holger.manthey@bertelsmann.de> - add option --enable-nls * Mon Oct 17 2011 Holger Manthey <holger.manthey@bertelsmann.de> - initial package
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor