Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 207985
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Default Assignee for New Packages <maintainer-wanted@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Troy Bowman <troy@dublan.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
milter-regex-ebuild.tgz The milter-regex ebuild with files application/octet-stream Troy Bowman 2008-01-29 01:52 0000 2.54 KB Details
milter-regex-1.7.ebuild the ebuild text/plain Troy Bowman 2008-01-31 02:56 0000 1.46 KB Details
milter-regex-init init script, goes in files/ text/plain Troy Bowman 2008-01-31 02:58 0000 910 bytes Details
milter-regex-conf conf script, goes in files/ text/plain Troy Bowman 2008-01-31 03:00 0000 86 bytes Details
rules.patch patch, goes in files/ patch Troy Bowman 2008-01-31 03:02 0000 351 bytes Details | Diff
milter-regex-1.7.ebuild tabbed version text/plain Troy Bowman 2008-01-31 03:15 0000 1.38 KB Details
milter-regex-1.7.ebuild milter-regex-1.7.ebuild try 3 text/plain Troy Bowman 2008-01-31 17:42 0000 2.06 KB Details
milter-regex-conf conf script, goes in files/ text/plain Troy Bowman 2008-01-31 17:43 0000 226 bytes Details
parse.y-1.7.patch parse.y-1.7.patch, goes in files/ patch Troy Bowman 2008-01-31 17:44 0000 448 bytes Details | Diff
rules-1.7.patch rules-1.7.patch goes in files/ patch Troy Bowman 2008-01-31 17:46 0000 349 bytes Details | Diff
Makefile.linux-1.7.patch Makefile.linux-1.7.patch patch Troy Bowman 2008-01-31 17:51 0000 314 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 207985 depends on: Show dependency tree
Bug 207985 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-01-29 01:50 0000
milter-regex is a libmilter-based (sendmail/postfix/exim) mail filter which
allows you to accept or reject mail depending on regular expression matches in
any stage from helo to the body of the message, before it is queued.  See:
http://www.benzedrine.cx/milter-regex.html

milter-regex is available for the BSDs, but I can't find it in portage or in
another bug here, so I created an ebuild and am submitting it for inclusion
into Gentoo.  I'd be okay with being a proxy maintainer for the ebuild.

------- Comment #1 From Troy Bowman 2008-01-29 01:52:43 0000 -------
Created an attachment (id=142068) [details]
The milter-regex ebuild with files

Attaching the ebuild along with the rc and config scripts...

------- Comment #2 From Jakub Moc (RETIRED) 2008-01-29 08:31:05 0000 -------
(From update of attachment 142068 [details])
Please, do NOT attach tarballs with ebuilds.

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3#doc_chap2

------- Comment #3 From Troy Bowman 2008-01-31 02:56:40 0000 -------
Created an attachment (id=142242) [details]
the ebuild

Oookay, so here's the ebuild then...

------- Comment #4 From Troy Bowman 2008-01-31 02:58:29 0000 -------
Created an attachment (id=142243) [details]
init script, goes in files/

Here's the init.d script, goes in files/

------- Comment #5 From Troy Bowman 2008-01-31 03:00:18 0000 -------
Created an attachment (id=142244) [details]
conf script, goes in files/

Here's the conf.d file, goes in files/

------- Comment #6 From Troy Bowman 2008-01-31 03:02:26 0000 -------
Created an attachment (id=142247) [details]
patch, goes in files/

This patch is needed to fix a small bug in the example rules that come in the
distribution.

------- Comment #7 From Troy Bowman 2008-01-31 03:15:00 0000 -------
Created an attachment (id=142249) [details]
tabbed version

Here's a tabbed (not spaced) version.  Sorry.

------- Comment #8 From Alin Năstac 2008-01-31 03:21:15 0000 -------
I tried to adapt your ebuild but it cannot be build with bison (the younger and
better version of yacc, not to mention the fact that it is part of the system
packages). Today I enter in a mini-vacation, so I will not be able to work till
Feb the 11th. Maybe you could patch the parse.y till I return... 

------- Comment #9 From Troy Bowman 2008-01-31 04:45:47 0000 -------
I could not build it with bison, either.  It builds just fine with yacc, which
is what the upstream uses.  It's (obviously) easier to just have yacc as a
dependency.  I honestly don't have enough knowledge about bison/yacc nuances or
I don't even know even enough about what they're even doing to be able to patch
the parse.y on my own.  I am, however, able to take a bison-generated C code
and patch that to make it work.  I'll give it a shot, but I'm not sure I'll be
too successful in making it work.

------- Comment #10 From Troy Bowman 2008-01-31 17:42:00 0000 -------
Created an attachment (id=142304) [details]
milter-regex-1.7.ebuild try 3

fixed for bison, fixed DEPENDS, added comments for postfix, added
enewuser/enewgroup for "milter" user like sid-milter.

------- Comment #11 From Troy Bowman 2008-01-31 17:43:15 0000 -------
Created an attachment (id=142305) [details]
conf script, goes in files/

added comments, changed user to "milter"

------- Comment #12 From Troy Bowman 2008-01-31 17:44:49 0000 -------
Created an attachment (id=142307) [details]
parse.y-1.7.patch, goes in files/

added version number to patch

------- Comment #13 From Troy Bowman 2008-01-31 17:46:10 0000 -------
Created an attachment (id=142308) [details]
rules-1.7.patch

rules patch with version number

------- Comment #14 From Troy Bowman 2008-01-31 17:51:46 0000 -------
Created an attachment (id=142309) [details]
Makefile.linux-1.7.patch

makefile patch, to make bison output y.tab.* as other parts of the Makefile
expects.

------- Comment #15 From Troy Bowman 2008-01-31 18:07:58 0000 -------
Okay, with those changes, we should be good with bison and don't depend on yacc
anymore.  We're also more tolerant to non-sendmail users who use libfilter, and
we use our own "milter" user, which other milter ebuilds use.  The files
directory should contain these files now, which are attached to the bug:

files/parse.y-1.7.patch
files/rules-1.7.patch
files/milter-regex-conf
files/milter-regex-init
files/Makefile.linux-1.7.patch

Thanks!

------- Comment #16 From Alin Năstac 2008-02-18 10:35:41 0000 -------
Fixed in cvs, although not exactly in your way. Thanks!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug