diff options
Diffstat (limited to 'app-misc/ds-scripts/ds-scripts-1.0.ebuild')
-rw-r--r-- | app-misc/ds-scripts/ds-scripts-1.0.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/app-misc/ds-scripts/ds-scripts-1.0.ebuild b/app-misc/ds-scripts/ds-scripts-1.0.ebuild new file mode 100644 index 0000000..7521326 --- /dev/null +++ b/app-misc/ds-scripts/ds-scripts-1.0.ebuild @@ -0,0 +1,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 +} |