Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
projects
:
mail
>
nullmailer
> nullmailer.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nullmailer.spec of Package nullmailer (Revision 8)
Currently displaying revision
8
,
show latest
Name: nullmailer Summary: Simple relay-only mail transport agent Version: 2.0 Release: 1 License: GPL Group: Networking/Daemons Source: http://untroubled.org/nullmailer/archive/%{version}/nullmailer-%{version}.tar.gz Source1: nullmailer.init Provides: smtpdaemon mta Obsoletes: sendmail Conflicts: qmail Obsoletes: ssmtp Requires: shadow-utils gnutls BuildRequires: make automake gcc gcc-c++ autoconf gnutls-devel %description Nullmailer is a mail transport agent designed to only relay all its messages through a fixed set of "upstream" hosts. It is also designed to be secure. %prep %setup %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var make %install rm -fr $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc mkdir -p $RPM_BUILD_ROOT/usr/lib mkdir -p $RPM_BUILD_ROOT/var/nullmailer/service/log mkdir -p $RPM_BUILD_ROOT/var/log/nullmailer make DESTDIR=$RPM_BUILD_ROOT install-strip ln -s ../sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail install -m 0755 %{SOURCE0} $RPM_BUILD_ROOT/etc/%{name} %clean rm -rf $RPM_BUILD_ROOT %pre PATH="/sbin:/usr/sbin:$PATH" export PATH if [ "$1" = 1 ]; then # pre-install instructions grep ^nullmail: /etc/group >/dev/null || groupadd -r nullmail grep ^nullmail: /etc/passwd >/dev/null || useradd -d /var/lock/svc/nullmailer -g nullmail -M -r -s /bin/true nullmail fi %post if ! [ -s /etc/nullmailer/me ]; then /bin/hostname --fqdn >/etc/nullmailer/me fi if ! [ -s /etc/nullmailer/defaultdomain ]; then /bin/hostname --domain >/etc/nullmailer/defaultdomain fi %preun #if [ "$1" = 0 ]; then # svc-remove nullmailer #fi %postun if [ "$1" = 0 ]; then # post-erase instructions /usr/sbin/userdel nullmail /usr/sbin/groupdel nullmail fi %files %defattr(-,nullmail,nullmail) %doc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO %dir /etc/nullmailer %attr(04711,nullmail,nullmail) /usr/bin/mailq /usr/libexec/nullmailer-inject /usr/libexec/nullmailer-smtpd /usr/lib/sendmail %dir /usr/libexec/nullmailer /usr/libexec/nullmailer/* %{_mandir}/*/* %attr(04711,nullmail,nullmail) /usr/sbin/nullmailer-queue /usr/libexec/nullmailer-send /usr/sbin/sendmail %dir /var/log/nullmailer /var/nullmailer /etc/init.d/nullmailer %changelog * Tue Mar 08 2016 Juergen Gotteswinter <jg@internetx.com> 2.0-1 - Rebuild for 2.0 * Wed May 02 2012 Robin Bowes <robin.bowes@yo61.com> 1.10-1 - Rebuild for 1.10 * Mon Jun 27 2011 Robin Bowes <robin@statcounter.com> 1.05-1.statcounter03 - Remove post-uninstall script (I don't use BG's supervise scripts) * Mon Jun 27 2011 Robin Bowes <robin@statcounter.com> 1.05-1.statcounter02 - Now Obsoletes sendmail and ssmtp rather than conflicting