summaryrefslogtreecommitdiffstats
path: root/app-misc/ds-scripts/ds-scripts-1.0-r1.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-misc/ds-scripts/ds-scripts-1.0-r1.ebuild
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'app-misc/ds-scripts/ds-scripts-1.0-r1.ebuild')
-rw-r--r--app-misc/ds-scripts/ds-scripts-1.0-r1.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/app-misc/ds-scripts/ds-scripts-1.0-r1.ebuild b/app-misc/ds-scripts/ds-scripts-1.0-r1.ebuild
new file mode 100644
index 0000000..bd71da7
--- /dev/null
+++ b/app-misc/ds-scripts/ds-scripts-1.0-r1.ebuild
@@ -0,0 +1,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
+}