diff options
Diffstat (limited to 'app-misc/ds-scripts')
-rw-r--r-- | app-misc/ds-scripts/Manifest | 6 | ||||
-rw-r--r-- | app-misc/ds-scripts/ds-scripts-1.0-r1.ebuild | 54 | ||||
-rw-r--r-- | app-misc/ds-scripts/ds-scripts-1.0.ebuild | 80 | ||||
-rw-r--r-- | app-misc/ds-scripts/files/alias.sh.darklin.sh | 71 | ||||
-rw-r--r-- | app-misc/ds-scripts/files/ds-scripts.tar.bz2 | bin | 0 -> 1751 bytes | |||
-rw-r--r-- | app-misc/ds-scripts/files/ds-video.tar.bz2 | bin | 0 -> 3863 bytes | |||
-rwxr-xr-x | app-misc/ds-scripts/files/m3u | 48 |
7 files changed, 259 insertions, 0 deletions
diff --git a/app-misc/ds-scripts/Manifest b/app-misc/ds-scripts/Manifest new file mode 100644 index 0000000..ee32d5e --- /dev/null +++ b/app-misc/ds-scripts/Manifest @@ -0,0 +1,6 @@ +AUX alias.sh.darklin.sh 2456 RMD160 4d60de035540827b69d94d41e3fc1d90c8df1201 SHA1 1cad907993ca8ea67dfa2f8574bd4a16d03ea21e SHA256 da58c951fb46eeffd752ecf6bd0b55e366596f688fe7c9f106ff181059303641 +AUX ds-scripts.tar.bz2 1751 RMD160 383f17c1d5a7938008ef64688c5f8cb714c863da SHA1 a34cd62e1a2dba36e004381f7c6f559829b1b804 SHA256 e6b88f364f3deec1fe3e32c85004ff0748cc8598be5d56373d32da2ae6d520ae +AUX ds-video.tar.bz2 3863 RMD160 6753ac458788c6908a04c859b075d926a1db7230 SHA1 bcd51ace6ea0b6a9d1e1dd31f4743c9e494be9cc SHA256 201631654834756786a3751641979677b72a0d4beb7befa7cc8d0239e2f83aef +AUX m3u 882 RMD160 42ede63941634250a16fb61936e864cba922f2ed SHA1 62f085b997fa07e5a9562c1f5707acb26e3b0168 SHA256 a53744b79b83a7ce996ba08de9acef188481970688ee439706b3196e94a13284 +EBUILD ds-scripts-1.0-r1.ebuild 1334 RMD160 090430f435e6d8e419743b45f1aa01062b72c4f5 SHA1 5f71fc8f8db009d32185ea9529300a3df7422a50 SHA256 876039de00b098f0803371f1df06c7d71583142ad4b8d147a776383d4d1f0723 +EBUILD ds-scripts-1.0.ebuild 2228 RMD160 9dfe585b2d42dbe32d6c53e62be32ee48cfbfdb4 SHA1 bc5ad60bd9384d8dda9b979263e8bb9d6252c299 SHA256 a64fed71775ecc779bfaf01ffa8ac96e8e08f40332069e490cc6b8e37b9c9639 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 +} 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 +} diff --git a/app-misc/ds-scripts/files/alias.sh.darklin.sh b/app-misc/ds-scripts/files/alias.sh.darklin.sh new file mode 100644 index 0000000..09007de --- /dev/null +++ b/app-misc/ds-scripts/files/alias.sh.darklin.sh @@ -0,0 +1,71 @@ +########### For localised file names, without locale set +alias ls="ls --color --show-control-chars --quoting-style=escape" +alias la="ls -la --color --show-control-chars --quoting-style=escape" +alias l="ls -l --color --show-control-chars --quoting-style=escape" +########### Fast chdir +## RPM +alias rpm:="cd /usr/src/RPM" +alias specs:="cd /usr/src/RPM/SPECS" +alias srpms:="cd /usr/src/RPM/SRPMS" +alias rpms:="cd /usr/src/RPM/RPMS/i686" +## MNT +alias mnt:="cd /mnt" +alias a:="cd /mnt/a" +alias c:="cd /mnt/c" +alias d:="cd /mnt/d" +alias e:="cd /mnt/e" +alias f:="cd /mnt/f" +alias g:="cd /mnt/g" +alias mp3:="cd /mnt/mp3" +alias cdrom:="cd /mnt/cdrom" +alias cdn:="cd /mnt/cdrom" +alias cdr:="cd /mnt/cdr" +alias cd:="cd /mnt/cdrom" +alias cd2:="cd /mnt/cdrom2" +alias cd3:="cd /mnt/cdrom3" +alias temp:="cd /mnt/temp" +alias tmp:="cd /mnt/tmp" +alias tmp1:="cd /mnt/tmp1" +alias tmp2:="cd /mnt/tmp2" +alias tmp3:="cd /mnt/tmp3" +alias tmp4:="cd /mnt/tmp4" +alias tmp5:="cd /mnt/tmp5" +alias img:="cd /mnt/img" +alias img1:="cd /mnt/img1" +alias img2:="cd /mnt/img2" +alias img3:="cd /mnt/img3" +alias img4:="cd /mnt/img4" +alias img5:="cd /mnt/img5" +alias upload:="cd /mnt/upload" +alias download:="cd /mnt/download" +########### Mounts +alias mnt="mount" +## Floppy +alias ifdd="mount /dev/fd0" +alias efdd="umount /dev/fd0" +alias izip="modprobe parport_pc ; modprobe ppa ; mount /dev/sdb4" +alias ezip="umount /dev/sdb4" +## CD +alias icd="mount /dev/cdrom" +alias ecd="umount /dev/cdrom ; eject /dev/cdrom" +alias icd2="mount /dev/cdrom2" +alias ecd2="umount /dev/cdrom2 ; eject /dev/cdrom2" +alias icd3="mount /dev/cdrom3" +alias ecd3="umount /dev/cdrom3 ; eject /dev/cdrom3" +alias icdr="mount /dev/scd0" +alias ecdr="umount /dev/scd0 ; eject /dev/scd0" +## VFat +alias vmount="mount -t vfat -o noexec,quiet,iocharset=koi8-r,codepage=866" +alias ntmount="mount -t ntfs -o noexec,iocharset=koi8-r,umask=0222" +########### Libraries +alias iproxy="export LDP=$LD_PRELOAD ; export LD_PRELOAD=$LD_PRELOAD:/usr/lib/libtsocks.so" +alias eproxy="export LD_PRELOAD=$LDP" +# alias l5="export LDLP=$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH=/usr/i486-linux-libc5/lib:$LD_LIBRARY_PATH" +# alias l6="export LD_LIBRARY_PATH=$LDLP" +########### Kernel +#alias kernel-load-lpcd="insmod paride ; insmod on26 ; insmod pcd" +alias module-compile="gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c" +########### Programms +alias vslick="/opt/vslick/bin/vs" +alias ica="/usr/lib/ICAClient/wfcmgr" +alias ooffice=ooffice2 diff --git a/app-misc/ds-scripts/files/ds-scripts.tar.bz2 b/app-misc/ds-scripts/files/ds-scripts.tar.bz2 Binary files differnew file mode 100644 index 0000000..6a5d8e5 --- /dev/null +++ b/app-misc/ds-scripts/files/ds-scripts.tar.bz2 diff --git a/app-misc/ds-scripts/files/ds-video.tar.bz2 b/app-misc/ds-scripts/files/ds-video.tar.bz2 Binary files differnew file mode 100644 index 0000000..f44b675 --- /dev/null +++ b/app-misc/ds-scripts/files/ds-video.tar.bz2 diff --git a/app-misc/ds-scripts/files/m3u b/app-misc/ds-scripts/files/m3u new file mode 100755 index 0000000..e5496a5 --- /dev/null +++ b/app-misc/ds-scripts/files/m3u @@ -0,0 +1,48 @@ +#! /bin/bash + +if [ -z "$1" ] +then + echo "Usage: m3u [ -f encoding -p encoding ] <playlist.m3u> [random]" + exit +fi + +if [ "$2" = "random" ] +then + prm="-Z -z" +else + prm="" +fi + +FSE=`cat /etc/m3u.conf | grep FSEncoding | sed s/'^[ \t]*FSEncoding[ \t]*=[ \t]*'//g | sed s/'[ \t]*'$//g` +PLE=`cat /etc/m3u.conf | grep PLEncoding | sed s/'^[ \t]*PLEncoding[ \t]*=[ \t]*'//g | sed s/'[ \t]*'$//g` + +pl=1 +while getopts 'f:p:' OPT; do + pl=`expr $pl + 2` + case $OPT in + f) + FSE=$OPTARG + ;; + p) + PLE=$OPTARG + ;; + esac +done + + +pl=`eval echo "\\$${pl}"` + +if [ -z "$FSE" -o -z "$PLE" ]; then + cmd="cat \"$pl\"" +else + cmd="cat \"$pl\" | iconv -f $PLE -t $FSE" +fi + +s=$(eval $cmd | grep -E "\.[mMoOwW][pPgGaA][23gGvV]" | sed s/
//g | sed s/'\\'/'\/'/g | sed s/^/\"/ | sed s/$/\"/ | perl -pi -e 's|\n| |gs' ) + +if [ -n "$prm" ] +then + eval mpg123 $prm "$s" +else + eval zinf "$s" +fi |