blob: 75213267cdc83b1ef5ff66942dd405647022d6ca (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
DESCRIPTION="DarkSoft Scripts"
KEYWORDS="alpha amd64 ppc sparc x86"
DEPEND="dev-lang/perl"
SLOT="0"
src_unpack() {
cd ${WORKDIR}
tar xjf ${FILESDIR}/ds-scripts.tar.bz2
tar xjf ${FILESDIR}/ds-video.tar.bz2
}
src_install() {
cd ${WORKDIR}
dodir /usr/bin
install -c -m 755 ds-scripts/* ${D}/usr/bin || die
install -c -m 755 ds-video/* ${D}/usr/bin || die
ln -s dvd2divx ${D}/usr/bin/dvd2divx-encode || die
ln -s dvd2divx ${D}/usr/bin/dvd2divx-audio || die
ln -s dvd2divx ${D}/usr/bin/dvd2divx-subtitle || die
install -c -m 755 ${FILESDIR}/m3u ${D}/usr/bin || die
dodir /etc/profile.d
install -c -m 755 ${FILESDIR}/alias.sh.darklin.sh ${D}/etc/profile.d || die
i=1
dodir /mnt/
while [ $i -le 5 ]; do
dodir /mnt/img$i || die
keepdir /mnt/img$i
dodir /mnt/tmp$i || die
keepdir /mnt/tmp$i
i=`expr $i + 1`
done
dodir /mnt/auth; chmod 000 ${D}/mnt/auth; keepdir /mnt/auth
dodir /mnt/Upload; chmod 777 ${D}/mnt/Upload; keepdir /mnt/Upload
dodir /mnt/Download; keepdir /mnt/Download
ln -s img1 ${D}/mnt/img
ln -s tmp1 ${D}/mnt/tmp
cat > ${D}/etc/m3u.conf << END
FSEncoding = KOI8-R
PLEncoding = CP1251
END
dodir /usr/src/redhat/
ln -s redhat ${D}/usr/src/RPM
dodir /usr/src/redhat/BUILD
keepdir /usr/src/redhat/BUILD
dodir /usr/src/redhat/RPMS
dodir /usr/src/redhat/RPMS/x86_64
keepdir /usr/src/redhat/RPMS/x86_64
dodir /usr/src/redhat/RPMS/athlon
keepdir /usr/src/redhat/RPMS/athlon
dodir /usr/src/redhat/RPMS/i386
keepdir /usr/src/redhat/RPMS/i386
dodir /usr/src/redhat/RPMS/i486
keepdir /usr/src/redhat/RPMS/i486
dodir /usr/src/redhat/RPMS/i586
keepdir /usr/src/redhat/RPMS/i586
dodir /usr/src/redhat/RPMS/i686
keepdir /usr/src/redhat/RPMS/i686
dodir /usr/src/redhat/RPMS/k6
keepdirdir /usr/src/redhat/RPMS/k6
dodir /usr/src/redhat/RPMS/noarch
keepdir /usr/src/redhat/RPMS/noarch
dodir /usr/src/redhat/SPECS
keepdir /usr/src/redhat/SPECS
dodir /usr/src/redhat/SRPMS
keepdir /usr/src/redhat/SRPMS
}
|