summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am11
-rw-r--r--pykolab.spec.in39
2 files changed, 47 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 0f330dc..49eabb6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,11 +9,13 @@ INTLTOOL_FILES = \
intltool-update.in
PYTHON_FILES = \
+ bin/kolab_smtp_access_policy.py \
cyruslib.py \
conf.py \
kolab.py \
kolabd.py \
kolabtest.py \
+ saslauthd.py \
setup-kolab.py
EXTRA_DIST = \
@@ -42,6 +44,9 @@ ChangeLog:
srpm: ChangeLog dist
@rpmbuild -ts $(PACKAGE)-$(VERSION).tar.gz
+rpm: srpm
+ @rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
+
binary:
python ext/python/Tools/freeze/freeze.py \
-p $(prefix) \
@@ -147,10 +152,12 @@ clean:
execdir = $(sbindir)
install-exec-local:
- mkdir -p $(DESTDIR)/$(sbindir) $(DESTDIR)/$(bindir)
+ mkdir -p $(DESTDIR)/$(sbindir) $(DESTDIR)/$(bindir) \
+ $(DESTDIR)/$(libexecdir)/postfix
$(INSTALL) -p -m 755 conf.py $(DESTDIR)/$(sbindir)/kolab-conf
$(INSTALL) -p -m 755 kolab.py $(DESTDIR)/$(sbindir)/kolab
$(INSTALL) -p -m 755 kolabd.py $(DESTDIR)/$(sbindir)/kolabd
- $(INSTALL) -p -m 644 saslauthd.py $(DESTDIR)/$(sbindir)/kolab-saslauthd/
+ $(INSTALL) -p -m 644 saslauthd.py $(DESTDIR)/$(sbindir)/kolab-saslauthd
$(INSTALL) -p -m 755 kolabtest.py $(DESTDIR)/$(bindir)/kolab-test
$(INSTALL) -p -m 644 cyruslib.py $(DESTDIR)/$(datadir)/$(PACKAGE)/
+ $(INSTALL) -p -m 755 bin/kolab_smtp_access_policy.py $(DESTDIR)/$(libexecdir)/postfix/kolab_smtp_access_policy
diff --git a/pykolab.spec.in b/pykolab.spec.in
index 94b6a98..215930a 100644
--- a/pykolab.spec.in
+++ b/pykolab.spec.in
@@ -27,6 +27,31 @@ BuildRequires: intltool, gettext, python
%description -n kolab-cli
Kolab CLI utilities
+##
+## Kolab SASL Authentication Daemon
+##
+%package -n kolab-saslauthd
+Summary: Kolab SASL Authentication Daemon
+Group: Applications/System
+BuildRequires: intltool, gettext, python
+Requires: pykolab = %{version}-%{release}
+
+%description -n kolab-saslauthd
+Kolab SASL Authentication Daemon for multi-domain, multi-authn database deployments
+
+##
+## Kolab SMTP Access Policy for Postfix
+##
+%package -n postfix-kolab
+Summary: Kolab SMTP Access Policy for Postfix
+Group: Applications/System
+BuildRequires: intltool, gettext, python
+Requires: postfix
+Requires: pykolab = %{version}-%{release}
+
+%description -n postfix-kolab
+Kolab SMTP Access Policy for Postfix
+
%prep
%setup -q
@@ -46,10 +71,22 @@ rm -rf %{buildroot}
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README README.tests
%{_bindir}/*
-%{_sbindir}/*
+%{_sbindir}/kolab
+%{_sbindir}/kolab-conf
+%{_sbindir}/kolabd
%config(noreplace) %{_sysconfdir}/kolab/kolab.conf
%{_datadir}/pykolab/
+%files -n kolab-saslauthd
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING
+%{_sbindir}/kolab-saslauthd
+
+%files -n postfix-kolab
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING
+%{_libexecdir}/postfix/kolab_smtp_access_policy
+
%changelog
* @DATESTAMP@ Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> @VERSION@-@RELEASE@
- Initial package of new upstream version