List and control system daemons Fix: -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.--VspfC2fNjRkcPid95qu6iXi83qAKDgudcatUC0AhVq9TdJNj Content-Type: text/plain; name="file.shar" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.shar" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/sysutils/dae # /usr/ports/sysutils/dae/files # /usr/ports/sysutils/dae/files/dae.1 # /usr/ports/sysutils/dae/files/dae.sh # /usr/ports/sysutils/dae/pkg-plist # /usr/ports/sysutils/dae/pkg-descr # /usr/ports/sysutils/dae/Makefile # echo c - /usr/ports/sysutils/dae mkdir -p /usr/ports/sysutils/dae > /dev/null 2>&1 echo c - /usr/ports/sysutils/dae/files mkdir -p /usr/ports/sysutils/dae/files > /dev/null 2>&1 echo x - /usr/ports/sysutils/dae/files/dae.1 sed 's/^X//' >/usr/ports/sysutils/dae/files/dae.1 << '4ee88c7a74a037e988a3dd1060254f0d' X.\" Copyright (c) 2009 Dylan Bridgman. All rights reserved. X.\" X.\" Redistribution and use in source and binary forms, with or without X.\" modification, are permitted provided that the following conditions are X.\" met: X.\" X.\" 1. Redistributions of source code must retain the above copyright notice X.\" this list of conditions and the following disclaimer. X.\" X.\" 2. Redistributions in binary form must reproduce the above copyright X.\" notice, this list of conditions and the following disclaimer in the X.\" documentation and/or other materials provided with the distribution. X.\" X.\" 3. Neither the name of the author nor the names of its contributors may be X.\" used to endorse or promote products derived from this software without X.\" specific prior written permission. X.\" X.\" THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, X.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY X.\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE X.\" COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, X.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT X.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, X.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY X.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT X.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF X.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. X.\" X.\" $Id$ X.\" X.TH dae 1 "2009 March 11" X.SH NAME Xdae \- List and control system daemons X.SH SYNOPSIS X.PP X.B dae X[\-a] | [\-l] | [\-L] | <service-name> [action] | [\-h] X.SH DESCRIPTION XThe \fIdae\fP program is used to list all daemon control scripts installed within Xthe rc.d system. It may also be used to execute any of these scripts with the parameters provided. X.SH OPTIONS X.TP X\-h display a short help message X.TP X\-a show all daemon scripts X.TP X\-l show system daemon scripts X.TP X\-L show port daemon scripts X.TP X\-x show X11 daemon scripts X.SH AUTHOR XDylan Bridgman (light (at) ether.org.za) X.SH SEE ALSO Xrc(8), rcorder(8) X 4ee88c7a74a037e988a3dd1060254f0d echo x - /usr/ports/sysutils/dae/files/dae.sh sed 's/^X//' >/usr/ports/sysutils/dae/files/dae.sh << '04fe97d60a6ec8d9c351487cea95cef0' X#!/bin/sh X X### X# Author: Light X# Email: isibane@gmail.com X### X Xusage() X{ X echo "Usage: `basename $0` [-a] | [-l] | [-L] | <service-name> [action]" X echo -e "\t-h Show this message" X echo -e "\t-a Show all service names" X echo -e "\t-l Show system service names" X echo -e "\t-L Show port service names" X echo -e "\t-x Show X11 service names" X exit 1 X} X Xlist_system() { find /etc/rc.d -type f -perm +a+x 2>/dev/null; } Xlist_ports() { find /usr/local/etc/rc.d -type f -perm +a+x 2>/dev/null; } Xlist_x11() { find /usr/X11R6/etc/rc.d -type f -perm +a+x 2>/dev/null; } Xlist_filter() { sed "s/.sh$//g;s/.*\\///g" | sort | column; } X Xset -- `getopt "ahlLx" "$@"` || { X usage X} Xwhile : Xdo X case "$1" in X -a) ( list_system; list_ports; list_x11) | list_filter; exit 0 ;; X -l) list_system | list_filter; exit 0 ;; X -L) list_ports | list_filter; exit 0 ;; X -x) list_x11 | list_filter; exit 0 ;; X -h) usage ;; X --) break ;; X esac X shift Xdone Xshift Xif [ -z "$1" ] Xthen X usage Xfi Xservice_name=`( list_system; list_ports; list_x11 ) | grep -e "/$1[^/]*$\|/$1[^/]*\.sh$" | head -n 1` Xif [ -z "$service_name" ] Xthen X echo "Error: Unknown service '$1*[.sh]'" X echo X usage Xelse X $service_name $2 Xfi Xexit 0 04fe97d60a6ec8d9c351487cea95cef0 echo x - /usr/ports/sysutils/dae/pkg-plist sed 's/^X//' >/usr/ports/sysutils/dae/pkg-plist << 'b9859cfb40e5427a2fcd14f2cac1eaa2' Xsbin/dae b9859cfb40e5427a2fcd14f2cac1eaa2 echo x - /usr/ports/sysutils/dae/pkg-descr sed 's/^X//' >/usr/ports/sysutils/dae/pkg-descr << '83aeb94e6e2b02c038e39cfaf49c64a5' XThe dae program is used to list all daemon control scripts installed Xwithin the rc.d system. It may also be used to execute any of these Xscripts with the parameters provided. 83aeb94e6e2b02c038e39cfaf49c64a5 echo x - /usr/ports/sysutils/dae/Makefile sed 's/^X//' >/usr/ports/sysutils/dae/Makefile << '1b31b7ffd2c4eef6bd78d1018c9d085b' X# New ports collection makefile for: dae X# Date created: 11 March 2009 X# Whom: Dylan Bridgman X# X# $FreeBSD$ X# X XPORTNAME= dae XPORTVERSION= 0.9 XCATEGORIES= sysutils XDISTFILES= X XMAINTAINER= light@ether.org.za XCOMMENT= List and control system daemon X XMAN1= dae.1 X XNO_WRKSUBDIR= yes XNO_BUILD= yes X Xdo-install: X @${INSTALL_SCRIPT} ${FILESDIR}/dae.sh ${PREFIX}/sbin/dae X @${INSTALL_MAN} ${FILESDIR}/dae.1 ${MAN1PREFIX}/man/man1 X X.include <bsd.port.mk> 1b31b7ffd2c4eef6bd78d1018c9d085b exit
Responsible Changed From-To: freebsd-ports-bugs->miwi I'll take it.
State Changed From-To: open->closed New port added, with minor changes. Thanks!
miwi 2009-03-19 16:33:06 UTC FreeBSD ports repository Modified files: sysutils Makefile Added files: sysutils/dae Makefile pkg-descr sysutils/dae/files dae.1 dae.sh Log: The dae program is used to list all daemon control scripts installed within the rc.d system. It may also be used to execute any of these scripts with the parameters provided. PR: ports/132586 Submitted by: Dylan Bridgman Revision Changes Path 1.1090 +1 -0 ports/sysutils/Makefile 1.1 +28 -0 ports/sysutils/dae/Makefile (new) 1.1 +56 -0 ports/sysutils/dae/files/dae.1 (new) 1.1 +53 -0 ports/sysutils/dae/files/dae.sh (new) 1.1 +3 -0 ports/sysutils/dae/pkg-descr (new) _______________________________________________ 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"