Ticket #4935: quagga-unstable.patch

File quagga-unstable.patch, 3.7 KB (added by Maddes <maddes_trac@…>, 9 years ago)
  • net/quagga-unstable/Makefile

     
    88include $(TOPDIR)/rules.mk 
    99 
    1010PKG_NAME:=quagga-unstable 
    11 PKG_VERSION:=0.99.11 
     11PKG_VERSION:=0.99.12 
    1212PKG_RELEASE:=2 
    13 PKG_MD5SUM:=903e40c744730ad4d62bee872eeb813b 
     13PKG_MD5SUM:=d2bb513f4ac113dbb300c15a0bd0a241 
    1414 
    1515PKG_SOURCE_URL:=http://www.quagga.net/download/ \ 
    1616                http://www.de.quagga.net/download/ \ 
     
    3535endef 
    3636 
    3737define Package/quagga-unstable/description 
    38         A routing software package that provides TCP/IP based routing services 
     38A routing software package that provides TCP/IP based routing services 
    3939        with routing protocols support such as RIPv1, RIPv2, RIPng, OSPFv2, 
    4040        OSPFv3, BGP-4, and BGP-4+ 
    4141 
     
    107107        ) 
    108108endef 
    109109 
    110 define Build/Compile     
     110define Build/Compile 
    111111        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    112112                DESTDIR=$(PKG_INSTALL_DIR) \ 
    113113                all install 
    114114endef 
    115115 
    116 define Package/quagga-unstable/install   
     116define Package/quagga-unstable/install 
    117117        $(INSTALL_DIR) $(1)/usr/sbin 
    118118        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zebra $(1)/usr/sbin/ 
    119119        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/watchquagga $(1)/usr/sbin/ 
     
    128128 
    129129define Package/quagga-unstable/postinst 
    130130#!/bin/sh 
    131    
     131 
    132132name=quagga 
    133133id=51 
    134    
     134 
    135135# do not change below 
    136136# check if we are on real system 
    137137if [ -z "$${IPKG_INSTROOT}" ]; then 
     
    150150fi 
    151151 
    152152echo "" 
    153 if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then  
     153if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then 
    154154        echo "adding group $$name to /etc/group" 
    155         echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group   
     155        echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group 
    156156fi 
    157157 
    158 if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then  
     158if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then 
    159159        echo "adding user $$name to /etc/passwd" 
    160160        echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd 
    161161fi 
    162162 
    163163grep -q '^zebra[[:space:]]*2601/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null 
    164 if [ $$? -ne 0 ]; then   
     164if [ $$? -ne 0 ]; then 
    165165echo "zebrasrv      2600/tcp" >>$${IPKG_INSTROOT}/etc/services 
    166166echo "zebra         2601/tcp" >>$${IPKG_INSTROOT}/etc/services 
    167167echo "ripd          2602/tcp" >>$${IPKG_INSTROOT}/etc/services 
     
    174174fi 
    175175endef 
    176176 
    177 define Package/quagga-unstable-bgpd/install      
     177define Package/quagga-unstable-bgpd/install 
    178178        $(INSTALL_DIR) $(1)/usr/sbin 
    179179        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bgpd $(1)/usr/sbin/ 
    180180endef 
     
    184184        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/isisd $(1)/usr/sbin 
    185185endef 
    186186 
    187 define Package/quagga-unstable-ospfd/install     
     187define Package/quagga-unstable-ospfd/install 
    188188        $(INSTALL_DIR) $(1)/usr/sbin 
    189189        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(1)/usr/sbin/ 
    190190endef 
    191191 
    192 define Package/quagga-unstable-ospf6d/install    
     192define Package/quagga-unstable-ospf6d/install 
    193193        $(INSTALL_DIR) $(1)/usr/sbin 
    194194        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ospf6d $(1)/usr/sbin/ 
    195195endef 
    196196 
    197 define Package/quagga-unstable-ripd/install      
     197define Package/quagga-unstable-ripd/install 
    198198        $(INSTALL_DIR) $(1)/usr/sbin 
    199199        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ripd $(1)/usr/sbin/ 
    200200endef 
    201201 
    202 define Package/quagga-unstable-ripngd/install    
     202define Package/quagga-unstable-ripngd/install 
    203203        $(INSTALL_DIR) $(1)/usr/sbin 
    204204        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ripngd $(1)/usr/sbin/ 
    205205endef 
    206206 
    207 define Package/quagga-unstable-vtysh/install     
     207define Package/quagga-unstable-vtysh/install 
    208208        $(INSTALL_DIR) $(1)/usr/bin 
    209209        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vtysh $(1)/usr/bin/ 
    210210endef