Ignore:
Timestamp:
2010-03-05T12:34:19+01:00 (6 years ago)
Author:
swalker
Message:

[packages] proftpd: update to 1.3.3, add standalone init script, comment out UseIPv6 when IPv6 is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/proftpd/Makefile

    r19876 r19991  
    99 
    1010PKG_NAME:=proftpd 
    11 PKG_VERSION:=1.3.2e 
     11PKG_VERSION:=1.3.3 
    1212PKG_RELEASE:=1 
    1313 
     14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1415PKG_SOURCE_URL:=ftp://ftp.proftpd.org/distrib/source 
    15 PKG_MD5SUM:=018e0eb1757d9cea2a0e17f2c9b1ca2d 
    16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     16PKG_MD5SUM:=3951244f1940f0a40e8af142a9cf67fe 
    1717 
    1818PKG_FIXUP:=libtool 
    19 PKG_INSTALL=1 
     19PKG_INSTALL:=1 
    2020 
    2121include $(INCLUDE_DIR)/package.mk 
     
    4646define Package/proftpd/install 
    4747        $(INSTALL_DIR) $(1)/etc 
     48        $(if $(CONFIG_IPV6),,$(SED) 's/^UseIPv6/#UseIPv6/' $(PKG_INSTALL_DIR)/etc/proftpd.conf) 
    4849        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/proftpd.conf $(1)/etc/ 
     50        $(INSTALL_DIR) $(1)/etc/init.d 
     51        $(INSTALL_BIN) ./files/proftpd.init $(1)/etc/init.d/proftpd 
    4952        $(INSTALL_DIR) $(1)/usr/bin 
    5053        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ftp{count,top,who} $(1)/usr/bin/ 
     
    5457endef 
    5558 
     59define Package/proftpd/postinst 
     60#!/bin/sh 
     61 
     62name=ftp 
     63id=55 
     64home=/home/$${name} 
     65shell=/bin/ash 
     66 
     67# do not change below 
     68# # check if we are on real system 
     69if [ -z "$${IPKG_INSTROOT}" ]; then 
     70        # create copies of passwd and group, if we use squashfs 
     71        rootfs=`mount |awk '/root/ { print $$5 }'` 
     72        if [ "$$rootfs" = "squashfs" ]; then 
     73                if [ -h /etc/group ]; then 
     74                        rm /etc/group 
     75                        cp /rom/etc/group /etc/group 
     76                fi 
     77                if [ -h /etc/passwd ]; then 
     78                        rm /etc/passwd 
     79                        cp /rom/etc/passwd /etc/passwd 
     80                fi 
     81        fi 
     82fi 
     83 
     84echo "" 
     85if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then 
     86        echo "adding group $$name to /etc/group" 
     87        echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group 
     88fi 
     89 
     90if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then 
     91        echo "adding user $$name to /etc/passwd" 
     92        echo "$${name}:x:$${id}:$${id}:$${name}:$${home}:$${shell}" >> $${IPKG_INSTROOT}/etc/passwd 
     93fi 
     94endef 
     95 
    5696$(eval $(call BuildPackage,proftpd)) 
Note: See TracChangeset for help on using the changeset viewer.