Bug 146252 - mail/nullmailer rc script broken on FreeBSD 6.4-stable because /usr/sbin/daemon doesn't support '-u' option
Summary: mail/nullmailer rc script broken on FreeBSD 6.4-stable because /usr/sbin/daem...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Larkin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 19:50 UTC by informatique.src
Modified: 2010-05-06 15:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description informatique.src 2010-05-02 19:50:07 UTC
Hi,
As /usr/sbin/daemon doesn't seem to support '-u' option on FreeBSD-6.4 (according to the man pages, see http://www.freebsd.org/cgi/man.cgi?query=daemon&apropos=0&sektion=0&manpath=FreeBSD+6.4-RELEASE+and+Ports&format=html), updating nullmailer rc script to use /usr/sbin/daemon breaks nullmailer on this release. Here is error message i get:

# /usr/local/etc/rc.d/nullmailer start
Starting nullmailer.
daemon: illegal option -- u
usage: daemon [-cf] [-p pidfile] command arguments ...

HTH,
Thanks.

How-To-Repeat: - update nullmailer port to nullmailer-1.05_1,1 on FreeBSD-6.4
- Trying to restart the service: /usr/local/etc/rc.d/nullmailer restart should fail
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-05-02 19:51:00 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glarkin

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Greg Larkin freebsd_committer freebsd_triage 2010-05-05 18:36:30 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have just filed this PR to request support for drop-privilege
functionality in /usr/sbin/daemon on 6.4:
http://www.freebsd.org/cgi/query-pr.cgi?pr=146266

I'll research a temporary fix for the rc script until that MFC is completed.

Thank you,
Greg Larkin
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFL4aye0sRouByUApARAtpvAJ9X07A8XiasmwHDAaano1iUW7bCagCcDlVc
gSoGOu1tzD70SDhxCa6uWYk=
=UyAj
-----END PGP SIGNATURE-----
Comment 3 Greg Larkin freebsd_committer freebsd_triage 2010-05-05 18:41:47 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

delphij@ MFC'd the drop-privilege support for daemon(8) back to 6-STABLE
for me.  The way to merge this back into your 6.x installation is with
the following commands:

## If /usr/src is not yet populated, csup the 6-STABLE sources ##
cd /usr/src/usr.sbin/daemon
make install
/usr/local/etc/rc.d/nullmailer start

If /usr/src is already populated with sources from a previous 6.x
release, use these commands:

cd /usr/src/usr.sbin/daemon
fetch -o patch-daemon.c \
'http://svn.freebsd.org/viewvc/base/stable/6/usr.sbin/daemon/daemon.c?view=patch&r1=207582&r2=207581&pathrev=207582'
fetch -o patch-daemon.8 \
'http://svn.freebsd.org/viewvc/base/stable/6/usr.sbin/daemon/daemon.8?view=patch&r1=207582&r2=207581&pathrev=207582'
patch -p0 daemon.c < patch-daemon.c
patch -p0 daemon.8 < patch-daemon.8
make install
/usr/local/etc/rc.d/nullmailer start

If you have any trouble, please let me know.

Thank you,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFL4a3b0sRouByUApARAp1KAJ0dpIjqbtHKUwA0jbURs6ZQuGdJbACeMj/t
MXl3tfH3oxWlgaa2tJhaw3o=
=OhS+
-----END PGP SIGNATURE-----
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-05-06 15:22:52 UTC
glarkin     2010-05-06 14:22:43 UTC

  FreeBSD ports repository

  Modified files:
    .                    UPDATING 
  Log:
  - Added entry for mail/nullmailer on FreeBSD 6.x for daemon(8) workaround
    in rc.d script
  
  PR:             ports/146252
  Submitted by:   infosr <informatique.src@gmail.com>
  
  Revision  Changes    Path
  1.919     +31 -1     ports/UPDATING
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 5 Greg Larkin freebsd_committer freebsd_triage 2010-05-06 15:27:25 UTC
State Changed
From-To: open->closed

Closing after drop-privilege support in daemon(8) was MFC'd to 
6-STABLE and adding an entry in ports/UPDATING for rebuilding 
daemon(8): 
http://www.freebsd.org/cgi/getmsg.cgi?fetch=963770+0+current/cvs-ports 
http://www.freebsd.org/cgi/cvsweb.cgi/ports/UPDATING.diff?r1=1.918;r2=1.919