Changeset d30e6bd in freewrt
- Timestamp:
- Jul 22, 2006, 6:50:15 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 0511771
- Parents:
- 621ecb5
- Location:
- package
- Files:
-
- 5 edited
-
base-files/Makefile (modified) (1 diff)
-
base-files/default/etc/rc.conf (modified) (1 diff)
-
openntpd/Makefile (modified) (2 diffs)
-
openntpd/files/ntpd.init (modified) (1 diff)
-
openntpd/ipkg/openntpd.postinst (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/base-files/Makefile
r621ecb5 rd30e6bd 4 4 5 5 PKG_NAME:= base-files 6 PKG_RELEASE:= 76 PKG_RELEASE:= 8 7 7 WRKSRC= ${WRKDIR}/base-files 8 8 -
package/base-files/default/etc/rc.conf
r621ecb5 rd30e6bd 1 1 #!/bin/sh 2 # set the following to "YES" to turn them on 2 # set variables service=YES|NO (YES to enable, NO to disable) 3 # set variables service_flags="X" (NO to disable the service) 4 # note: for flags, X can be empty -
package/openntpd/Makefile
r621ecb5 rd30e6bd 1 # $ Id: Makefile 3274 2006-02-25 23:32:40Z florian$1 # $FreeWRT$ 2 2 3 3 include $(TOPDIR)/rules.mk 4 4 5 PKG_NAME:= openntpd6 PKG_VERSION:= 3.7p17 PKG_RELEASE:= 18 PKG_MD5SUM:= 10ed8eefd760e5819efcf3277b118f475 PKG_NAME:= openntpd 6 PKG_VERSION:= 3.7p1 7 PKG_RELEASE:= 2 8 PKG_MD5SUM:= 10ed8eefd760e5819efcf3277b118f47 9 9 10 10 # space separated list or special @SF for sourceforge projects 11 PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \ 12 ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenNTPD/ \ 13 ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenNTPD/ \ 14 ftp://ftp.sunet.se/pub/OpenBSD/OpenNTPD/ 15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 16 11 PKG_SOURCE_URL:= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \ 12 ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenNTPD/ \ 13 ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenNTPD/ \ 14 ftp://ftp.sunet.se/pub/OpenBSD/OpenNTPD/ 15 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz 17 16 18 17 include $(TOPDIR)/package/rules.mk … … 63 62 $(RSTRIP) $(IDIR_OPENNTPD) 64 63 $(IPKG_BUILD) $(IDIR_OPENNTPD) $(PACKAGE_DIR) 65 -
package/openntpd/files/ntpd.init
r621ecb5 rd30e6bd 1 1 #!/bin/sh 2 mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd` 3 /usr/sbin/ntpd -s 2 . /etc/rc.conf 3 mkdir -p /tmp/.ntp 4 [ x"$ntpd_flags" = x"NO" ] || /usr/sbin/ntpd $ntpd_flags -
package/openntpd/ipkg/openntpd.postinst
r621ecb5 rd30e6bd 1 1 #!/bin/sh 2 3 name=ntp4 id=505 2 6 3 # do not change below … … 21 18 fi 22 19 23 echo "" 24 if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/group)" ]; then 25 echo "adding group $name to /etc/group" 26 echo "${name}:x:${id}:" >> ${IPKG_INSTROOT}/etc/group 27 fi 28 29 if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/passwd)" ]; then 30 echo "adding user $name to /etc/passwd" 31 echo "${name}:x:${id}:${id}:${name}:/tmp/.${name}:/bin/false" >> ${IPKG_INSTROOT}/etc/passwd 32 fi 33 34 grep -q '^ntp[[:space:]]*123/udp' ${IPKG_INSTROOT}/etc/services 2>/dev/null 35 [ $? -ne 0 ] && echo "ntp 123/udp" >>${IPKG_INSTROOT}/etc/services 20 gid=$(get_next_gid) 21 add_group ntp $gid 22 add_user ntp $(get_next_uid) $gid /tmp/.ntp 23 add_service ntp 123/udp 24 add_rcconf openntpd ntpd_flags -s
Note:
See TracChangeset
for help on using the changeset viewer.
