Changeset 28900


Ignore:
Timestamp:
2011-11-10T00:17:20+01:00 (6 years ago)
Author:
nico
Message:

packages/leafnode: move user/group creation from postinst to an initscript

Location:
packages/net/leafnode
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/leafnode/Makefile

    r26147 r28900  
    11# 
    2 # Copyright (C) 2009-2010 OpenWrt.org 
     2# Copyright (C) 2009-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=leafnode 
    1111PKG_VERSION:=1.11.8 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    6464endef 
    6565 
    66 define Package/leafnode/postinst 
    67 #!/bin/sh 
    68 grep -q '^news:' $${IPKG_INSTROOT}/etc/passwd 2>/dev/null 
    69 [ $$? -ne 0 ] && echo "news:*:31:31:news:/var/spool/news:/bin/true" >>$${IPKG_INSTROOT}/etc/passwd && echo "news:x:31:" >>$${IPKG_INSTROOT}/etc/group || exit 0 
    70 endef 
    71  
    7266define Package/leafnode/install 
    7367        $(INSTALL_DIR) $(1)/usr/sbin 
     
    8175        $(INSTALL_DIR) $(1)/etc/crontabs 
    8276        $(INSTALL_DATA) ./files/news $(1)/etc/crontabs/ 
     77        $(INSTALL_DIR) $(1)/etc/init.d 
     78        $(INSTALL_BIN) ./files/leafnode.init $(1)/etc/init.d/leafnode 
    8379endef 
    8480 
Note: See TracChangeset for help on using the changeset viewer.