wok-6.x view ntlmaps/receipt @ rev 25192

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