wok annotate ntlmaps/receipt @ rev 24766
Try fuse2 (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 18 18:06:12 2022 +0000 (2022-03-18) |
parents | 3765f181a6d5 |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@4005 | 1 # SliTaz package receipt. |
pascal@4005 | 2 |
pascal@4005 | 3 PACKAGE="ntlmaps" |
pascal@4005 | 4 VERSION="0.9.9.0.1" |
pascal@4005 | 5 CATEGORY="network" |
pascal@4005 | 6 SHORT_DESC="NTLM Authorization Proxy Server to authenticate via an MS Proxy." |
pascal@4005 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15584 | 8 LICENSE="GPL2" |
pascal@4005 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@4005 | 10 WEB_SITE="http://ntlmaps.sourceforge.net/" |
pascal@4005 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@4005 | 12 CONFIG_FILES="/etc/ntlmaps.conf" |
jozee@4969 | 13 TAGS="proxy server" |
pascal@4005 | 14 |
pascal@15584 | 15 DEPENDS="python" |
pascal@15584 | 16 |
pascal@24402 | 17 # What is the latest version available today? |
pascal@24402 | 18 current_version() |
pascal@24402 | 19 { |
pascal@24402 | 20 wget -O - https://sourceforge.net/projects/ntlmaps/files/ntlmaps/ 2>/dev/null | \ |
pascal@24402 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24402 | 22 sed '/scope="row/!d;/tar/!d;s|.*/ntlmaps-||;s|.tar.*||;q' |
pascal@24402 | 23 } |
pascal@24402 | 24 |
pascal@4005 | 25 # Rules to configure and make the package. |
pascal@4005 | 26 compile_rules() |
pascal@4005 | 27 { |
pascal@4005 | 28 cd $src |
pascal@4005 | 29 } |
pascal@4005 | 30 |
pascal@4005 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4005 | 32 genpkg_rules() |
pascal@4005 | 33 { |
pascal@4005 | 34 mkdir -p $fs/usr/share/ntlmaps $fs/usr/bin $fs/etc |
pascal@4005 | 35 cp -a $src/* $fs/usr/share/ntlmaps |
pascal@4005 | 36 mv $fs/usr/share/ntlmaps/server.cfg $fs/etc/ntlmaps.conf |
pascal@4005 | 37 ln -s /etc/ntlmaps.conf $fs/usr/share/ntlmaps/server.cfg |
pascal@4005 | 38 cat > $fs/usr/bin/ntlmaps <<EOT |
pascal@4005 | 39 #!/bin/sh |
pascal@4005 | 40 exec python /usr/share/ntlmaps/main.py |
pascal@4005 | 41 EOT |
pascal@4005 | 42 chmod +x $fs/usr/bin/ntlmaps |
pascal@4005 | 43 } |
pascal@4005 | 44 |