FreeBSD Bugzilla – Attachment 34923 Details for
Bug 56557
new port: irc/ircproxy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 6.16 KB, created by
Jonas Kvinge
on 2003-09-07 17:10:06 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Jonas Kvinge
Created:
2003-09-07 17:10:06 UTC
Size:
6.16 KB
patch
obsolete
># 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: ># ># ircproxy-freebsd-port/Makefile ># ircproxy-freebsd-port/distinfo ># ircproxy-freebsd-port/pkg-comment ># ircproxy-freebsd-port/pkg-deinstall ># ircproxy-freebsd-port/pkg-descr ># ircproxy-freebsd-port/pkg-plist ># >echo x - ircproxy-freebsd-port/Makefile >sed 's/^X//' >ircproxy-freebsd-port/Makefile << 'END-of-ircproxy-freebsd-port/Makefile' >X# New ports collection makefile for: ircproxy >X# Date created: 10 July 2003 >X# Whom: Jonas Kvinge <jonas@night-light.net> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= ircproxy >XPORTVERSION= 1.2.41 >XCATEGORIES= irc >XMASTER_SITES= ftp://ftp.night-light.net/pub/unix/ircproxy/ >XDISTNAME= ircproxy-1.2.41d.pl2 >X >XMAINTAINER= jonas@jonas.night-light.net >X >XCOMMENT= pkg-comment >X >XGNU_CONFIGURE= yes >X >X# >X# Copy the freebsd port setup file to automatically generate setup.h >X# So we dont need to do make config, I think this might be the best >X# solution. >X# >Xpre-build: >X @if [ ! -f ${WRKSRC}/config/setup-file ]; then ( \ >X if [ ! -f ${WRKSRC}/setup/setup-freebsd ]; then ( ${ECHO} "Missing the setup-freebsd file!"; exit 1; ) fi; \ >X ${CP} ${WRKSRC}/setup/setup-freebsd ${WRKSRC}/setup/setup-file || exit 1; \ >X cd ${WRKSRC}/setup; SETUP_BATCH=y SETUP_QUIET=y ${SH} ./setup || exit 1; \ >X cd ${WRKSRC}/setup; ${SH} ./setup-makefile || exit 1; \ >X ) \ >X fi; >X ${CHMOD} u+x ${WRKSRC}/pkg-install || exit 1 >X ${CHMOD} u+x ${WRKSRC}/pkg-deinstall || exit 1 >X >X.include "bsd.port.mk" >END-of-ircproxy-freebsd-port/Makefile >echo x - ircproxy-freebsd-port/distinfo >sed 's/^X//' >ircproxy-freebsd-port/distinfo << 'END-of-ircproxy-freebsd-port/distinfo' >XMD5 (ircproxy-1.2.41d.pl2.tar.gz) = 0fda244dd742e2e7ee848e96b6ec04c2 >END-of-ircproxy-freebsd-port/distinfo >echo x - ircproxy-freebsd-port/pkg-comment >sed 's/^X//' >ircproxy-freebsd-port/pkg-comment << 'END-of-ircproxy-freebsd-port/pkg-comment' >XAn IRC proxy server >END-of-ircproxy-freebsd-port/pkg-comment >echo x - ircproxy-freebsd-port/pkg-deinstall >sed 's/^X//' >ircproxy-freebsd-port/pkg-deinstall << 'END-of-ircproxy-freebsd-port/pkg-deinstall' >X#!/bin/sh >X# >X# Night Light IRC Proxy >X# Deinstallation script for FreeBSD ports >X# Written by Jonas Kvinge >X# >X# Last modified: Jonas Kvinge (10.07.2003) >X# >X >Xc='' >Xn='' >Xif [ "`eval echo -n 'a'`" = "-n a" ] ; then >X c='\c' >Xelse >X n='-n' >Xfi >X >XEGROUP="ircproxy" >XEUSER="ircproxy" >XPIDFILEPATH="$PKG_PREFIX/ircproxy/ircproxy.pid" >X >Xif [ "$2" = "DEINSTALL" ]; then >X >X echo "*-----------------------------------------------------------------------------" >X echo "* Night Light IRC Proxy FreeBSD de-installation script" >X echo "* Copyright (C) 2003 Jonas Kvinge, all rights reserved." >X echo "*-----------------------------------------------------------------------------" >X >X echo $n "Checking to see whether ircproxy is installed in crontab... $c" >X grep -q "^[^#]*$PKG_PREFIX/ircproxy/ircproxy\.sh" /etc/crontab >/dev/null 2>&1 >X if [ $? -eq 0 ]; then >X echo "YES" >X echo $n "Removing ircproxy from crontab... $c" >X sed -e "s:^[^#]*$PKG_PREFIX/ircproxy/ircproxy\.sh::" -e '/^$/d' /etc/crontab >/tmp/crontab || exit 1 >X mv /tmp/crontab /etc/crontab || exit >X chmod 644 /etc/crontab || exit >X echo "OK" >X else >X echo "NO" >X fi >X echo $n "Checking to see whether ircproxy is running... $c" >X if [ -f $PIDFILEPATH ] ; then >X if [ ! -r $PIDFILEPATH ] ; then >X echo "ERROR" >X echo "Error: Cannot read PID file $PIDFILEPATH!" >X exit 1 >X fi >X PID=`cat "$PIDFILEPATH"` >X if ps -p "$PID" >/dev/null 2>&1 ; then >X echo "YES" >X for count in 1 2 3 4 5 6 7 8 9 10; do >X if [ $count -ge 5 ]; then >X echo $n "Sending KILL signal to ircproxy... $c" >X kill -KILL "$PID" || break >X echo "OK" >X break >X fi >X echo $n "Sending TERM signal to ircproxy and waiting two seconds... $c" >X kill -TERM "$PID" || break >X sleep 2 >X if ps -p `cat "$PIDFILEPATH"` >/dev/null 2>&1 ; then >X echo "Still Running!" >X else >X echo "Successfully terminated!" >X break >X fi >X done >X else >X echo "NO" >X fi >X else >X echo "NO" >X fi >Xfi >X >Xif [ "$2" = "POST-DEINSTALL" ]; then >X >X echo "*-----------------------------------------------------------------------------" >X echo "* Night Light IRC Proxy FreeBSD post de-installation script" >X echo "* Copyright (C) 2003 Jonas Kvinge, all rights reserved." >X echo "*-----------------------------------------------------------------------------" >X >X echo $n "Checking if $PKG_PREFIX/ircproxy exist... $c" >X if [ -d "$PKG_PREFIX/ircproxy" ]; then >X echo "YES" >X echo $n "Removing $PKG_PREFIX/ircproxy... $c" >X rm -R -f "$PKG_PREFIX/ircproxy" && echo "OK" || exit 1 >X else >X echo "NO" >X fi >X echo $n "Checking if $EGROUP group exist... $c" >X pw group show ${EGROUP} >/dev/null 2>&1 >X if [ $? -eq 0 ] ; then >X echo "YES" >X echo $n "Removing the $EGROUP group from the system... $c" >X pw groupdel -n "$EGROUP" && echo "OK" || exit 1 >X else >X echo "NO" >X fi >X echo $n "Checking if $EUSER user account exist... $c" >X pw user show ${EUSER} >/dev/null 2>&1 >X if [ $? -eq 0 ] ; then >X echo "YES" >X echo $n "Removing the $EUSER user account from the system... $c" >X pw userdel -n "$EUSER" && echo "OK" || exit 1 >X else >X echo "NO" >X fi >Xfi >X >Xexit 0 >END-of-ircproxy-freebsd-port/pkg-deinstall >echo x - ircproxy-freebsd-port/pkg-descr >sed 's/^X//' >ircproxy-freebsd-port/pkg-descr << 'END-of-ircproxy-freebsd-port/pkg-descr' >XThis is a port of ircproxy, it is an Internet Relay Chat Proxy. >X >XWWW: http://www.ircproxy.night-light.net/ >X >X- Jonas Kvinge >Xjonas@jonas.night-light.net >END-of-ircproxy-freebsd-port/pkg-descr >echo x - ircproxy-freebsd-port/pkg-plist >sed 's/^X//' >ircproxy-freebsd-port/pkg-plist << 'END-of-ircproxy-freebsd-port/pkg-plist' >Xircproxy/ircproxy >Xircproxy/mkpasswd >Xircproxy/data/listen.conf >Xircproxy/data/access.conf >Xircproxy/data/conn.conf >END-of-ircproxy-freebsd-port/pkg-plist >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 56557
: 34923