Bug 72759 - Portsentry doesn't install sample startup file
Summary: Portsentry doesn't install sample startup file
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-16 16:30 UTC by Alex de Kruijff
Modified: 2005-04-18 14:17 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 Alex de Kruijff 2004-10-16 16:30:35 UTC
My request is to change the portsentry ports so that it installs a sample startup file in etc/rc.d. I included my own.

Fix: 

PORTSENTRY="/usr/local/bin/portsentry"

case "$1" in
        start)  
                echo -n ' portsentry ('
                ${PORTSENTRY} -tcp > /dev/null && echo -n 'tcp'
                ${PORTSENTRY} -udp > /dev/null && echo -n ' udp'
                echo -n ')'
                ;;
        stop)   
                killall `basename ${PORTSENTRY}`
                ;;
        *)
                echo "Usage: `basename $0` {start|stop}" >&2
                ;;
esac
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-11-24 12:56:22 UTC
State Changed
From-To: open->feedback

Could you please adapt this to RCng?
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2005-04-18 14:16:58 UTC
State Changed
From-To: feedback->closed

Committed, thanks!