blob: bd71da7d11649a2a2ef41cd025fcbcaac46ac9b1 (
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
|
# 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
}
|