Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymilter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
d69c0020
Commit
d69c0020
authored
11 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Release 1.0
parent
980dc5f5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pymilter.spec
+6
-26
6 additions, 26 deletions
pymilter.spec
setup.cfg
+2
-2
2 additions, 2 deletions
setup.cfg
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
9 additions
and
29 deletions
pymilter.spec
+
6
−
26
View file @
d69c0020
...
...
@@ -6,7 +6,7 @@
Summary: Python interface to sendmail milter API
Name: %{pythonbase}-pymilter
Version:
0.9.8
Version:
1.0
Release: 1%{dist}
Source: http://downloads.sourceforge.net/pymilter/pymilter-%{version}.tar.gz
Source1: pymilter.te
...
...
@@ -30,7 +30,7 @@ DSNs, and doing CBV.
%package selinux
Summary: SELinux policy module for pymilter
Group: System Environment/Base
Requires: policycoreutils, selinux-policy, %{name}
= %{version}-%{release}
Requires: policycoreutils, selinux-policy, %{name}
BuildRequires: policycoreutils, checkpolicy
%description selinux
...
...
@@ -51,35 +51,11 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/milter
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/milter
mkdir -p $RPM_BUILD_ROOT%{libdir}
cp start.sh $RPM_BUILD_ROOT%{libdir}
ed $RPM_BUILD_ROOT%{libdir}/start.sh <<'EOF'
/^datadir=/
c
datadir="%{_localstatedir}/log/milter"
.
/^piddir=/
c
piddir="%{_localstatedir}/run/milter"
.
/^libdir=/
c
libdir="%{libdir}"
.
/^python=/
c
python="%{__python}"
.
w
q
EOF
chmod a+x $RPM_BUILD_ROOT%{libdir}/start.sh
# install selinux modules
mkdir -p %{buildroot}%{_datadir}/selinux/targeted
cp -p pymilter.pp %{buildroot}%{_datadir}/selinux/targeted
# start.sh is used by spfmilter, srsmilter, and milter, and could be used by
# other milters using pymilter.
%files
%defattr(-,root,root,-)
%doc README ChangeLog NEWS TODO CREDITS sample.py milter-template.py
...
...
@@ -105,6 +81,10 @@ if [ $1 -eq 0 ] ; then
fi
%changelog
* Sat Mar 1 2014 Stuart Gathman <stuart@gathman.org> 1.0-2
- Remove start.sh to track EPEL repository, suggest daemonize as replacement
- Selinux subpackage should not care about pymilter version
* Wed Jun 26 2013 Stuart Gathman <stuart@gathman.org> 1.0-1
- Allow ACCEPT as untrapped exception policy
- Optional dir for getaddrset and getaddrdict in Milter.config
...
...
This diff is collapsed.
Click to expand it.
setup.cfg
+
2
−
2
View file @
d69c0020
[bdist_rpm]
python
=
python2.6
doc_files
=
README NEWS TODO
packager
=
Stuart D. Gathman <stuart@
bmsi.com
>
doc_files
=
README NEWS TODO
COPYING CREDITS
packager
=
Stuart D. Gathman <stuart@
gathman.org
>
release
=
1
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
d69c0020
...
...
@@ -13,7 +13,7 @@ libs = ["milter"]
libdirs
=
[
"
/usr/lib/libmilter
"
]
# needed for Debian
# NOTE: importing Milter to obtain version fails when milter.so not built
setup
(
name
=
"
pymilter
"
,
version
=
'
0.9.8
'
,
setup
(
name
=
"
pymilter
"
,
version
=
'
1.0
'
,
description
=
"
Python interface to sendmail milter API
"
,
long_description
=
"""
\
This is a python extension module to enable python scripts to
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment