Changeset 24861


Ignore:
Timestamp:
2011-01-01T07:54:37+01:00 (6 years ago)
Author:
swalker
Message:

[packages] miau: update to 0.6.6

  • drop the local outdated miaurc in favor of upstream's example
  • drop /etc/default/miau
  • add conffile
  • use better upstream url
  • remove trailing whitespace
Location:
packages/net/miau
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/miau/Makefile

    r19705 r24861  
    11# 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    99 
    1010PKG_NAME:=miau 
    11 PKG_VERSION:=0.6.5 
     11PKG_VERSION:=0.6.6 
    1212PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1515PKG_SOURCE_URL:=@SF/miau 
    16 PKG_MD5SUM:=cbce4182d66430a965a5fff26738ce3f 
     16PKG_MD5SUM:=8778b8564c679cf5487b1972ca0b35e4 
    1717 
    1818PKG_INSTALL:=1 
     
    2525  CATEGORY:=Network 
    2626  TITLE:=Another IRC-bouncer/proxy 
    27   URL:=http://sourceforge.net/projects/miau/ 
     27  URL:=http://miau.sourceforge.net/ 
    2828endef 
    2929 
    3030define Package/miau/description 
    3131        In short, miau is an IRC-bouncer/proxy. 
    32         Being more verbose, miau is small but quite featured  
    33         IRC-bouncer - a service bit like HTTP-proxy, but  
     32        Being more verbose, miau is small but quite featured 
     33        IRC-bouncer - a service bit like HTTP-proxy, but 
    3434        for IRC-networks. 
     35endef 
     36 
     37define Package/miau/conffiles 
     38/etc/miau/miaurc 
    3539endef 
    3640 
     
    4650        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ 
    4751        $(INSTALL_DIR) $(1)/etc/init.d 
    48         $(INSTALL_DIR) $(1)/etc/default 
    4952        $(INSTALL_DIR) $(1)/etc/miau 
    5053        $(INSTALL_BIN) ./files/miau.init $(1)/etc/init.d/miau 
    51         $(INSTALL_DATA) ./files/miau $(1)/etc/default/miau 
    52         $(INSTALL_DATA) ./files/miaurc $(1)/etc/miau/miaurc 
     54        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/doc/miau/examples/miaurc $(1)/etc/miau/ 
    5355endef 
    5456 
  • packages/net/miau/files/miau.init

    r10734 r24861  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33START=50 
    44 
    5 DEFAULT="/etc/default/miau" 
    65OPTIONS="-d /etc/miau/" 
    76LOG_DIR="/var/log/miau" 
     
    109 
    1110start() { 
    12         [ -f $DEFAULT ] && . $DEFAULT 
    13         [ "$ENABLE_MIAU" = "yes" ] || exit 0 
    1411        [ -f /var/run/miau.pid ] && { 
    1512                echo "[ERROR] miau is running" 
    1613                exit 0 
    1714        } 
    18         [ -d $LOG_DIR ] || mkdir -p $LOG_DIR  
     15        [ -d $LOG_DIR ] || mkdir -p $LOG_DIR 
    1916        /usr/bin/miau -f $OPTIONS > $OUT_LOG 2> $ERR_LOG & 
    2017        PID=$! 
    21         sleep 1  
     18        sleep 1 
    2219        if [ -d /proc/$PID ]; then 
    23                 echo $PID > /var/run/miau.pid  
    24         else  
     20                echo $PID > /var/run/miau.pid 
     21        else 
    2522                echo "[ERROR] Unable to run miau as a daemon" 
    2623        fi 
Note: See TracChangeset for help on using the changeset viewer.