blob: 5c6e99d40c99f5bfe638f0c8aa150b7dabb94397 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
source /usr/src/ports/Build/build.sh
NAME=scsi
VERSION=1.36
BUILD=1
# Description
cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: scsi
${NAME}:
${NAME}: Library and utilities for SCSI devices. This includes devices on
${NAME}: transports traditionally associated with SCSI such as Fibre Channel
${NAME}: (FCP), Serial Attached SCSI (SAS) and the SCSI Parallel Interface
${NAME}: (SPI). Many other devices use SCSI command sets. ATAPI CD/DVD
${NAME}: drivers and SATA disks connect via a translation layer or a bridge
${NAME}: device are examples of devices that use the SCSI command sets. This
${NAME}: package includes the 'sdparm' and 'lsscsi' utilities.
${NAME}:
${NAME}: Homepage: http://sg.danny.cz
EOF
# Sources
SRCNAME[0]=sg3_utils
SRCVERS[0]=${VERSION}
SRCPACK[0]=http://sg.danny.cz/sg/p/${SRCNAME[0]}-${SRCVERS[0]}.tar.xz
SRCCOPY[0]="GPL2 BSD3"
# lftpget http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh
build0()
{
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
--build="${ARCH}-slackware-linux" \
--disable-dependency-tracking \
--enable-static=no \
--enable-shared=yes \
--prefix="${SYS_DIR[usr]}" \
--mandir="${SYS_DIR[man]}" \
--sysconfdir="${SYS_DIR[etc]}" \
--libdir="${SYS_DIR[lib]}" \
--localstatedir="${SYS_DIR[var]}" \
--bindir="${SYS_DIR[sbin]}"
make ${JOBS}
make install DESTDIR="${PKG}"
doc AUTHORS CREDITS
changelog ChangeLog
install.bin rescan-scsi-bus.sh \
${PKG}${SYS_DIR[sbin]}/rescan-scsi-bus
}
SRCNAME[1]=lsscsi
SRCVERS[1]=0.27
SRCPACK[1]=http://sg.danny.cz/scsi/${SRCNAME[1]}-${SRCVERS[1]}.tgz
SRCCOPY[1]="GPL2"
build1()
{
./configure \
--build="${ARCH}-slackware-linux" \
--disable-dependency-tracking \
--prefix="${SYS_DIR[usr]}" \
--mandir="${SYS_DIR[man]}" \
--sysconfdir="${SYS_DIR[etc]}" \
--libdir="${SYS_DIR[lib]}" \
--localstatedir="${SYS_DIR[var]}"
make ${JOBS} CFLAGS+="${FLAGS}"
make install DESTDIR="${PKG}"
doc AUTHORS CREDITS
changelog ChangeLog
install.dir ${PKG}${SYS_DIR[man]}/man1
mv \
${PKG}${SYS_DIR[man]}/man8/lsscsi.8 \
${PKG}${SYS_DIR[man]}/man1/lsscsi.1
}
SRCNAME[2]=sdparm
SRCVERS[2]=1.07
SRCPACK[2]=http://sg.danny.cz/sg/p/${SRCNAME[2]}-${SRCVERS[2]}.tgz
SRCCOPY[2]="BSD3"
build2()
{
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
--build="${ARCH}-slackware-linux" \
--disable-dependency-tracking \
--prefix="${SYS_DIR[usr]}" \
--mandir="${SYS_DIR[man]}" \
--sysconfdir="${SYS_DIR[etc]}" \
--libdir="${SYS_DIR[lib]}" \
--localstatedir="${SYS_DIR[var]}" \
--bindir="${SYS_DIR[sbin]}"
make ${JOBS}
make install DESTDIR="${PKG}"
doc AUTHORS CREDITS
changelog NEWS
}
|