wok rev 25771

Up ntpclient (3.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 10 13:57:13 2024 +0000 (5 weeks ago)
parents 6e7761d7363c
children 39004c348471
files bacon/receipt ntpclient/receipt
line diff
     1.1 --- a/bacon/receipt	Fri Sep 06 11:29:23 2024 +0000
     1.2 +++ b/bacon/receipt	Tue Sep 10 13:57:13 2024 +0000
     1.3 @@ -2,15 +2,18 @@
     1.4  
     1.5  PACKAGE="bacon"
     1.6  VERSION="4.5"
     1.7 +HASH="46eb37c708"
     1.8  CATEGORY="development"
     1.9  TAGS="basic C"
    1.10  SHORT_DESC="Basic to C converter."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="MIT"
    1.13 -WEB_SITE="https://www.basic-converter.org/"
    1.14 +#WEB_SITE="https://www.basic-converter.org/"
    1.15 +WEB_SITE="https://chiselapp.com/user/bacon/repository/bacon/home"
    1.16  
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18 -WGET_URL="${WEB_SITE}museum/$TARBALL"
    1.19 +#WGET_URL="${WEB_SITE}stable/$TARBALL"
    1.20 +WGET_URL="https://chiselapp.com/user/bacon/repository/bacon/tarball/$HASH/bacon-$HASH.tar.gz"
    1.21  
    1.22  DEPENDS="gtk+"
    1.23  BUILD_DEPENDS="gtk+-dev"
    1.24 @@ -25,6 +28,8 @@
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 +	[ -d bacon-$HASH ] && cd bacon-$HASH
    1.29 +	[ -d bacon_trunk ] && cd bacon_trunk
    1.30  	./configure			\
    1.31  		--prefix=/usr		\
    1.32  		--mandir=/usr/share/man	\
     2.1 --- a/ntpclient/receipt	Fri Sep 06 11:29:23 2024 +0000
     2.2 +++ b/ntpclient/receipt	Tue Sep 10 13:57:13 2024 +0000
     2.3 @@ -1,28 +1,31 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="ntpclient"
     2.7 -VERSION="2015_365"
     2.8 +VERSION="3.1"
     2.9  CATEGORY="system-tools"
    2.10  SHORT_DESC="Tiny NTP Client"
    2.11  MAINTAINER="erjo@slitaz.org"
    2.12  LICENSE="GPL2"
    2.13 -TARBALL="${PACKAGE}_$VERSION.tar.gz"
    2.14 -WEB_SITE="http://doolittle.icarus.com/ntpclient/"
    2.15 -WGET_URL="${WEB_SITE}$TARBALL"
    2.16 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.17 +WEB_SITE="https://github.com/troglobit/sntpd"
    2.18 +WGET_URL="https://github.com/troglobit/sntpd/archive/refs/tags/v$VERSION.tar.gz"
    2.19  HOST_ARCH="i486 arm"
    2.20 +PROVIDES="sntpd"
    2.21 +
    2.22 +BUILD_DEPENDS="automake"
    2.23  
    2.24  # What is the latest version available today?
    2.25  current_version()
    2.26  {
    2.27 -	wget -O - $WEB_SITE 2>/dev/null | \
    2.28 -	sed "/latest/d;/${PACKAGE}_[0-9]/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar..*|\\1|" | sort -Vr | sed q
    2.29 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    2.30 +	sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
    2.31  }
    2.32  
    2.33  # Rules to configure and make the package.
    2.34  compile_rules()
    2.35  {
    2.36 -	# disable debug
    2.37 -	sed -i 's/\(^CFLAGS += -DENABLE_DEBUG\)/#\1/' Makefile &&
    2.38 +	./autogen.sh
    2.39 +	./configure LIBS="-lrt" --prefix=/usr &&
    2.40  	make
    2.41  }
    2.42  
    2.43 @@ -30,7 +33,8 @@
    2.44  genpkg_rules()
    2.45  {
    2.46  	mkdir -p $fs/usr/bin
    2.47 -	cp -a $src/ntpclient  $fs/usr/bin
    2.48 +	cp -a $src/src/sntpd  $fs/usr/bin/
    2.49 +	ln $fs/usr/bin/sntpd  $fs/usr/bin/ntpclient
    2.50  }
    2.51  
    2.52  post_install()