Ignore:
Timestamp:
2011-03-13T20:56:41+01:00 (5 years ago)
Author:
nbd
Message:

openntpd: remove the postinst script for updating services, group, passwd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/openntpd/Makefile

    r20317 r26148  
    3737endef 
    3838 
    39 define Package/openntpd/postinst 
    40 #!/bin/sh 
    41  
    42 name=ntp 
    43 id=50 
    44  
    45 # do not change below 
    46 # check if we are on real system 
    47 if [ -z "$${IPKG_INSTROOT}" ]; then 
    48         # create copies of passwd and group, if we use squashfs 
    49         rootfs=`mount |awk '/root/ { print $$5 }'` 
    50         if [ "$$rootfs" = "squashfs" ]; then 
    51                 if [ -h /etc/group ]; then 
    52                         rm /etc/group 
    53                         cp -p /rom/etc/group /etc/group 
    54                 fi 
    55                 if [ -h /etc/passwd ]; then 
    56                         rm /etc/passwd 
    57                         cp -p /rom/etc/passwd /etc/passwd 
    58                 fi 
    59         fi 
    60 fi 
    61  
    62 echo "" 
    63 if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/group)" ]; then 
    64         echo "adding group $$name to /etc/group" 
    65         echo "$${name}:x:$${id}:" >> $${IPKG_INSTROOT}/etc/group 
    66 fi 
    67 if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then 
    68         echo "adding user $$name to /etc/passwd" 
    69         echo "$${name}:x:$${id}:$${id}:$${name}:/tmp/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd 
    70 fi 
    71  
    72 grep -q '^ntp[[:space:]]*123/udp' $${IPKG_INSTROOT}/etc/services 2>/dev/null 
    73 [ $$? -ne 0 ] && echo "ntp       123/udp" >>$${IPKG_INSTROOT}/etc/services || exit 0 
    74 endef 
    75  
    7639define Build/Configure 
    7740        $(call Build/Configure/Default, \ 
    7841                --with-builtin-arc4random \ 
    79                 --with-privsep-user=ntp \ 
     42                --with-privsep-user=network \ 
    8043                --with-adjtimex \ 
    8144        ) 
Note: See TracChangeset for help on using the changeset viewer.