Browse Source

new: dma 0.10-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10253 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 8 years ago
parent
commit
2e21bb7240
3 changed files with 129 additions and 0 deletions
  1. 47 0
      d/dma/dma-0.10_owners.patch
  2. 3 0
      d/dma/dma-aliases
  3. 79 0
      d/dma/dma-vl.spec

+ 47 - 0
d/dma/dma-0.10_owners.patch

@@ -0,0 +1,47 @@
+diff -uNr dma-0.10.orig/Makefile dma-0.10/Makefile
+--- dma-0.10.orig/Makefile	2015-09-26 06:45:29.000000000 +0900
++++ dma-0.10/Makefile	2015-12-27 21:06:56.838022791 +0900
+@@ -50,8 +50,8 @@
+ install: all
+ 	${INSTALL} -d ${DESTDIR}${SBIN}
+ 	${INSTALL} -d ${DESTDIR}${MAN}/man8 ${DESTDIR}${LIBEXEC}
+-	${INSTALL} -m 2755 -o root -g mail dma ${DESTDIR}${SBIN}
+-	${INSTALL} -m 4754 -o root -g mail dma-mbox-create ${DESTDIR}${LIBEXEC}
++	${INSTALL} -m 2755 dma ${DESTDIR}${SBIN}
++	${INSTALL} -m 4754 dma-mbox-create ${DESTDIR}${LIBEXEC}
+ 	${INSTALL} -m 0644 dma.8 ${DESTDIR}${MAN}/man8/
+ 
+ sendmail-link:
+@@ -61,11 +61,10 @@
+ 	cd ${DESTDIR}${SBIN} && ${LN} ${SYMLINK} dma mailq
+ 
+ install-spool-dirs:
+-	${INSTALL} -d -m 2775 -o root -g mail ${DESTDIR}${DMASPOOL}
+-	${INSTALL} -d -m 2775 -o root -g mail ${DESTDIR}${VARMAIL}
++	${INSTALL} -d -m 2775 ${DESTDIR}${DMASPOOL}
++	${INSTALL} -d -m 2775 ${DESTDIR}${VARMAIL}
+ 
+ permissions:
+-	-${CHGRP} mail ${DESTDIR}${VARMAIL}/*
+ 	-${CHMOD} g+w ${DESTDIR}${VARMAIL}/*
+ 	-${CHMOD} 660 ${DESTDIR}${DMASPOOL}/flush
+ 
+@@ -74,14 +73,14 @@
+ 	@if [ -e ${DESTDIR}${CONFDIR}/dma.conf ]; then \
+ 		echo "Not overwriting ${DESTDIR}${CONFDIR}/dma.conf."; \
+ 	else \
+-		echo ${INSTALL} -m 644 -o root -g mail dma.conf ${DESTDIR}${CONFDIR}; \
+-		${INSTALL} -m 644 -o root -g mail dma.conf ${DESTDIR}${CONFDIR}; \
++		echo ${INSTALL} -m 644 dma.conf ${DESTDIR}${CONFDIR}; \
++		${INSTALL} -m 644 dma.conf ${DESTDIR}${CONFDIR}; \
+ 	fi
+ 	@if [ -e ${DESTDIR}${CONFDIR}/auth.conf ]; then \
+ 		echo "Not overwriting ${DESTDIR}${CONFDIR}/auth.conf."; \
+ 	else \
+-		echo ${INSTALL} -m 640 -o root -g mail auth.conf ${DESTDIR}${CONFDIR}; \
+-		${INSTALL} -m 640 -o root -g mail auth.conf ${DESTDIR}${CONFDIR}; \
++		echo ${INSTALL} -m 640 auth.conf ${DESTDIR}${CONFDIR}; \
++		${INSTALL} -m 640 auth.conf ${DESTDIR}${CONFDIR}; \
+ 	fi
+ 
+ aliases_parse.c: aliases_parse.y

+ 3 - 0
d/dma/dma-aliases

@@ -0,0 +1,3 @@
+# Person who should get root's mail
+#root:		your@email
+

+ 79 - 0
d/dma/dma-vl.spec

@@ -0,0 +1,79 @@
+%define ver 0.10
+%define rel 1
+
+Summary: a small Mail Transport Agent (MTA)
+Summary(ja): 小さなメール転送エージェント(MTA)
+Name: dma
+Version: %{ver}
+Release: %{rel}%{?_dist_release}
+Source0: https://github.com/corecode/dma/archive/v%{ver}.tar.gz#/%{name}-%{version}.tar.gz
+Source1: dma-aliases
+Patch0: dma-0.10_owners.patch
+License: BSD
+Group: System Environment/Daemons
+Provides: smtpdaemon
+URL: https://github.com/corecode/dma/
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: byacc
+BuildRequires: flex
+BuildRequires: openssl-devel
+Conflicts: postfix sendmail exim
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: iwaim
+
+
+%description
+dma (DragonFly Mail Agent) is a small Mail Transport Agent (MTA), designed 
+for home and office use.  It accepts mails from locally installed 
+Mail User Agents (MUA) and delivers the mails either locally or to 
+a remote destination.
+Remote delivery includes several features like TLS/SSL support and
+SMTP authentication.
+
+dma is not intended as a replacement for real, big MTAs like sendmail(8)
+or postfix(1).  Consequently, dma does not listen on port 25 for
+incoming connections.
+
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} %{?_smp_mflags} PREFIX=%{_prefix}  LIBEXEC=%{_libexecdir} \
+                          CONFDIR=%{_sysconfdir}/dma MAN=%{_mandir} VAR=%{_var} 
+
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__make} install sendmail-link mailq-link install-spool-dirs install-etc \
+          DESTDIR=${RPM_BUILD_ROOT} PREFIX=%{_prefix} LIBEXEC=%{_libexecdir} \
+          CONFDIR=%{_sysconfdir}/dma MAN=%{_mandir} VAR=%{_var}
+
+%{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/aliases
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+
+%files
+%defattr(-,root,root)
+%doc LICENSE README.* TODO
+%attr(-,root,mail) %{_sbindir}/dma
+%{_sbindir}/mailq
+%{_sbindir}/sendmail
+%attr(-,root,mail) %{_libexecdir}/dma-mbox-create
+%dir %{_sysconfdir}/dma
+%attr(-,root,mail) %config(noreplace) %{_sysconfdir}/dma/auth.conf
+%attr(-,root,mail) %config(noreplace) %{_sysconfdir}/dma/dma.conf
+%config(noreplace) %{_sysconfdir}/aliases
+%{_mandir}/man8/dma.8*
+%attr(-,root,mail) %dir %{_var}/spool/dma
+
+%changelog
+* Sun Dec 27 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 0.10-1
+- initial build for Vine Linux
+