wok view ntlmaps/receipt @ rev 25539
Up perl-test-compile (3.1.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 09 12:11:13 2023 +0000 (22 months ago) |
parents | afae00265386 |
children | d3556b8f5c3d |
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="https://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 }