wok view open-iscsi/receipt @ rev 24611

updated libgd and libgd-dev (2.0.35 -> 2.3.3)
author Hans-G?nter Theisgen
date Fri Mar 04 09:32:37 2022 +0100 (2022-03-04)
parents 05c8d8d9d934
children 870e1ce31226
line source
1 # SliTaz package receipt.
3 PACKAGE="open-iscsi"
4 VERSION="2.0-871"
5 CATEGORY="network"
6 SHORT_DESC="Implementation of RFC3720 userland utilities."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.open-iscsi.org/"
11 WGET_URL="${WEB_SITE}bits/$TARBALL"
13 DEPENDS="linux-scsi"
14 BUILD_DEPENDS="linux-module-headers"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/open-iscsi/open-iscsi/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's/ install_kernel / /' Makefile
27 sed -i 's|dirent.h>|&\n#include <sys/types.h>\n#include <sys/stat.h>|' \
28 usr/iscsi_sysfs.c
29 sed -i "s|/etc/iscsi/initiatorname.iscsi|$DESTDIR&|" Makefile
30 sed -i "s|/sbin/iscsi-iname|$DESTDIR&|" Makefile
31 make KSRC=/usr/src/linux KARCH=i686 user
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/etc $fs
39 cp -a $install/sbin $fs
40 }
42 post_install()
43 {
44 if [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then
45 echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi"
46 fi
47 }