Date: Wed, 11 Mar 2009 10:54:14 -0400 (EDT) From: light@ether.org.za To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/132586: New port: sysutils/dae List and control system daemons Message-ID: <20090311145414.3E20A6470@new.q.org.za> Resent-Message-ID: <200903121610.n2CGA486052695@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132586 >Category: ports >Synopsis: New port: sysutils/dae List and control system daemons >Confidential: yes >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 12 16:10:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: >Release: FreeBSD 7.1-STABLE amd64 >Organization: >Environment: System: FreeBSD new.q.org.za 7.1-STABLE FreeBSD 7.1-STABLE #1: Wed Mar 4 13:59:48 EST 2009 root@new.q.org.za:/usr/obj/usr/src/sys/GENERIC amd64 >Description: List and control system daemons >How-To-Repeat: >Fix: # 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 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090311145414.3E20A6470>