Revision: 05fcd5977a
Author: stwn <
st...@virtue.kuliax.org>
Date: Sun Apr 18 06:52:27 2010
Log: Add kuliax-scripts packaging tree
http://code.google.com/p/kuliax/source/detail?r=05fcd5977a
Added:
/pkg/build/kuliax-scripts-0.1/addsudo
/pkg/build/kuliax-scripts-0.1/debian/changelog
/pkg/build/kuliax-scripts-0.1/debian/compat
/pkg/build/kuliax-scripts-0.1/debian/control
/pkg/build/kuliax-scripts-0.1/debian/copyright
/pkg/build/kuliax-scripts-0.1/debian/rules
/pkg/build/kuliax-scripts-0.1/desktop/addsudo.desktop
/pkg/build/kuliax-scripts-0.1/desktop/nsplugin.desktop
/pkg/build/kuliax-scripts-0.1/desktop/x-flv.desktop
/pkg/build/kuliax-scripts-0.1/desktop/x-ogg.desktop
/pkg/build/kuliax-scripts-0.1/fix-adduser
/pkg/build/kuliax-scripts-0.1/fix-mimelnk
/pkg/build/kuliax-scripts_0.1.orig.tar.gz
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/addsudo Sun Apr 18 06:52:27 2010
@@ -0,0 +1,26 @@
+#!/bin/sh
+# simple script to add user to /etc/sudoers
+# 2010 Iwan Setiawan <
st...@kuliax.org>
+
+USER=`users`
+
+if [ `whoami` != "root" ]
+then
+ echo "You must be root to run this program."
+ zenity --warning --text "You must be root to run this program."
+else
+ IN=`grep ${USER} /etc/sudoers | cut -d' ' -f1`
+ if [ "${USER}" == "${IN}" ]
+ then
+ echo "${USER} is already in /etc/sudoers"
+ zenity --warning --text "You already on the list of sudoers!"
+ exit 0
+ fi
+ cp /etc/sudoers /etc/sudoers.orig
+ cp /etc/sudoers /etc/sudoers.tmp
+ chmod 0640 /etc/sudoers.tmp
+ echo "${USER} ALL=(ALL) ALL" >> /etc/sudoers.tmp
+ chmod 0440 /etc/sudoers.tmp
+ mv /etc/sudoers.tmp /etc/sudoers
+ zenity --info --text "From now on, you could run sudo!"
+fi
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/debian/changelog Sun Apr 18 06:52:27 2010
@@ -0,0 +1,15 @@
+kuliax-scripts (0.1-2) lumpia; urgency=low
+
+ * Add addsudo script and desktop file
+ * Clean up fix* scripts
+ * desktop/: add nsplugin.desktop, small fixes of x-*.desktop
+ * debian/rules: add dh_install addsudo* and nsplugin*
+
+ -- Iwan Setiawan <
st...@kuliax.org> Sun, 18 Apr 2010 20:07:29 +0700
+
+kuliax-scripts (0.1-1) lumpia; urgency=low
+
+ * Initial release
+
+ -- Iwan Setiawan <
st...@kuliax.org> Tue, 13 Apr 2010 11:32:17 +0700
+
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/debian/compat Sun Apr 18 06:52:27 2010
@@ -0,0 +1,1 @@
+7
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/debian/control Sun Apr 18 06:52:27 2010
@@ -0,0 +1,12 @@
+Source: kuliax-scripts
+Section: misc
+Priority: optional
+Maintainer: Iwan Setiawan <
st...@kuliax.org>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.7.3
+
+Package: kuliax-scripts
+Architecture: all
+Depends: sed
+Description: Simple scripts for Kuliax
+ This package contains a collection of simple scripts for Kuliax.
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/debian/copyright Sun Apr 18 06:52:27 2010
@@ -0,0 +1,32 @@
+This package was debianized by Iwan Setiawan <
st...@kuliax.org> on
+Tue, 13 Apr 2010 11:32:17 +0700.
+
+Upstream Author:
+
+ Iwan Setiawan <
st...@kuliax.org>
+
+Copyright:
+
+ Copyright (C) 2010 Iwan Setiawan
+
+License:
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2010, Iwan Setiawan <
st...@kuliax.org> and
+is licensed under the GPL, see above.
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/debian/rules Sun Apr 18 06:52:27 2010
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean
+
+binary-indep: build install
+ dh_clean
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_install addsudo fix* usr/sbin
+ dh_install desktop/nsplugin* usr/share/services/
+ dh_install desktop/x-* usr/share/mimelnk/video/
+ dh_install desktop/addsudo* usr/share/applications/
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/desktop/addsudo.desktop Sun Apr 18
06:52:27 2010
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=AddSudo
+GenericName=Add user to sudoers
+Comment=Add user to sudoers
+Comment[id]=Menambahkan pengguna ke sudoers
+Exec=su-to-root -X -c /usr/sbin/addsudo
+Icon=password
+Terminal=false
+Type=Application
+Categories=System;
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/desktop/nsplugin.desktop Sun Apr 18
06:52:27 2010
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Comment=Netscape plugin viewer
+Icon=netscape
+InitialPreference=1
+MimeType=video/mpeg;video/x-mpeg;video/x-mpeg2;video/mp4;video/msvideo;video/x-msvideo;video/fli;video/x-fli;application/x-mplayer2;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wvx;video/x-ms-asf-plugin;application/asx;application/x-quicktimeplayer;image/x-macpaint;video/quicktime;video/x-quicktime;video/x-theora;video/theora;video/ogg;audio/mp3;audio/x-mp3;audio/mpeg2;audio/x-mpeg2;audio/mpeg3;audio/x-mpeg3;audio/mpeg;audio/x-mpeg;audio/x-ogg;application/x-ogg;application/ogg;audio/x-flac;application/x-flac;audio/x-ms-wax;audio/x-ms-wma;application/pdf;application/x-pdf;text/pdf;text/x-pdf;application/x-rtf;application/rtf;text/rtf;application/x-msword;application/msword;application/vnd.ms-excel;application/vnd.sun.xml.writer;application/so7_vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/vnd.stardivision.writer;application/vnd.stardivision.writer-global;application/x-starwriter;application/vnd.sun.xml.calc;application/so7_vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/vnd.stardivision.calc;application/x-starcalc;application/vnd.lotus-1-2-3;application/vnd.sun.xml.draw;application/so7_vnd.sun.xml.draw;application/vnd.sun.xml.draw.template;application/vnd.stardivision.draw;application/x-stardraw;application/vnd.sun.xml.impress;application/so7_vnd.sun.xml.impress;application/vnd.sun.xml.impress.template;application/vnd.stardivision.impress;application/vnd.stardivision.impress-packed;application/x-starimpress;application/vnd.ms-powerpoint;application/mspowerpoint;application/vnd.sun.xml.math;application/so7_vnd.sun.xml.math;application/vnd.stardivision.math;application/x-starmath;application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.spreadsheet;application/vnd.oasis.opendocument.presentation;video/divx;video/vnd.divx;image/x-quicktime;application/smil;audio/x-pn-realaudio;application/vnd.rn-realmedia;application/vnd.rn-realaudio;video/vnd.rn-realvideo;audio/x-realaudio;audio/x-pn-realaudio-plugin;application/x-ms-wmv;audio/x-ms-wmv;video/x-ms-wmp;application/x-ms-wmp;application/x-drm-v2;audio/wav;audio/x-wav;audio/mp4;audio/x-mp4;video/3gpp;audio/x-mpegurl;audio/ogg;audio/flac;video/vnd.vivo;application/x-nsv-vp3-mp3;audio/x-mod;audio/basic;audio/x-basic;application/x-shockwave-flash
+Name=Netscape plugin viewer
+ServiceTypes=KParts/ReadOnlyPart,Browser/View
+Type=Service
+X-KDE-BrowserView-PluginsInfo=nsplugins/pluginsinfo
+X-KDE-Library=libnsplugin
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/desktop/x-flv.desktop Sun Apr 18 06:52:27
2010
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Hidden=false
+Icon=video
+MimeType=video/x-flv
+Name=Flash Video
+Patterns=*.flv
+Type=MimeType
+X-KDE-AutoEmbed=false
+X-KDE-nsplugin=false
+Application=smplayer.desktop
+GenericServiceType=Application
+ServiceType=video/x-flv
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/desktop/x-ogg.desktop Sun Apr 18 06:52:27
2010
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Hidden=false
+Icon=video
+MimeType=video/x-ogg
+Name=OGG stream with video
+Patterns=*.ogv
+Type=MimeType
+X-KDE-AutoEmbed=false
+X-KDE-nsplugin=false
+Application=smplayer.desktop
+GenericServiceType=Application
+ServiceType=video/x-ogg
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/fix-adduser Sun Apr 18 06:52:27 2010
@@ -0,0 +1,10 @@
+#!/bin/sh
+# simple script to fix adduser.conf
+# 2010 Iwan Setiawan <
st...@kuliax.org>
+
+FILE="/etc/adduser.conf"
+SED="sed -i -e"
+
+echo "Fixing adduser.conf.."
+${SED} 's|#EXTRA_GROUPS=\"dialout cdrom floppy audio video plugdev users
games\"|EXTRA_GROUPS=\"dialout cdrom floppy audio video plugdev netdev
powerdev users\"|' ${FILE}
+${SED} 's|#ADD_EXTRA_GROUPS=1|ADD_EXTRA_GROUPS=1|' ${FILE}
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts-0.1/fix-mimelnk Sun Apr 18 06:52:27 2010
@@ -0,0 +1,25 @@
+#!/bin/sh
+# simple script to fix mimelnk
+# 2010 Iwan Setiawan <
st...@kuliax.org>
+
+SED="sed -i -e"
+
+# autoembed false for opening pdf files
+${SED} 's|X-KDE-AutoEmbed=true|X-KDE-AutoEmbed=false|'
/usr/share/mimelnk/application/pdf.desktop
+
+# change icon for all presentation programs' desktop files
+OFFP=`grep -r Icon=presentation /usr/share/mimelnk/*|
sed '/magicpoint.desktop/d' | cut -d":" -f1`
+for DSKTP in ${OFFP}
+do
+ ${SED} 's|Icon=presentation|Icon=openofficeorg3-oasis-presentation|'
${DSKTP}
+done
+
+# remove mplayer.desktop, users should use smplayer instead or run mplayer
in command line
+MPLAYER=/usr/share/applications/mplayer.desktop
+if [ -e ${MPLAYER} ]
+then
+ rm -f ${MPLAYER}
+fi
+
+# add ogg, ogv, and flv mimelnk for smplayer.desktop
+${SED} '/^MimeType/ {s|$|video/x-ogg;video/x-flv;application/ogg|}'
/usr/share/applications/smplayer.desktop
=======================================
--- /dev/null
+++ /pkg/build/kuliax-scripts_0.1.orig.tar.gz Sun Apr 18 06:52:27 2010
@@ -0,0 +1,21 @@
+ ‹ põÃK íWmoÛ6 ö×êWÜ
+ ŠÈz±e Ë4,€í,èKŒ$
+:´EËJ”LD" ’r À?~'YJí&݆¡É¼ Ï K¢x/¾»çxº*3Fnl IVhe» o
$K Îw„‹˜ Auõ& »}mÑñ¼áØ L¼À w\oä à '@©4‘
+¥¯ùŸíû«÷ÿQ\}#ÿ »±I
+—ŠÊï’ÿñhôÍü ¿Éÿxâ{
+æ \]À5ù t
+üà|fÜQKë Ë‹ŒÂ¦ @ À"€¦ ‘à îñ]Ï
+ÓkÂá‚jFª›ŸªÐü²)$,žôgËšŸ¾œ
+ Õ‘³#~1›†]Ec° Ø´kY4Z
+èÎÙ
+ã鎥Á`еz¸ új}0{{y~üñäüìÍâ"|
ß ÉD©!Š¥È!ÉDQÜ )c&`Åb* ÈÊ4¦+¨Ô)HINÕûîúŸjáTW—B\Sy§ õõ¡WýÏ/n
+O§ wŒxë –Z±ýç Îršñ«Çæ¿7ºãÿÄ ãšÿþÐð /øß Áߦþ=Ž ©´ ùg\KH¦($B‚((¯H_Ä
šÉ¨º£Ñ[ûÅtf £Ì¬’ µ,é½ÅZ RÉ)•D牤Nã¨CŠ"c ÑLp µ bª®´(*G¢%á) †
+¦v‚d ’*Êu½ D*I®úÐH5¾ Íç‹ðS*i ¶„S” wä
+pãù ª(ô œ¤,* ãºuʼnû°† {
+w ì‚ xŸ¬ÊŸéÅ‹Ë 0 ½Ê ëY •{67+U E’°ˆbô‡¶ Š){g ¶›Z-jã´
+‚¤¹XQÀT“[ì¶ O‡M³TKQfqõ ªÙ‚ )MI è¡,9|Y†Hä9á1d u¿Z¼<þ}v
+n c+ ÊùʢŠx‡% ½F >
+ ^Rn=“9ÆänÝJX]E1z ¦‡ø³:„Êj’Úò¬Ó©¾¶Ð ¯·®;ºsc£‚£ö
+Å ¶‹ ßíVÔŽ÷÷”ÿ¿ç¿¶TŸ|þŸTó_ ø#3ÿïCþkš´5ÿHó¿ ß|
uþ‡Cwìã:ž4ÃÀœÿO wÓæ ›q-o?X¿²8¦|
s¾Zõ S·Kë öÙËÛ‚†[ÝÓz “u8ψZÂoõ® ÑšJ®Âçƒê}-ÐJZ žáÍ*WÕ´ÍZÃ
+ƒ½á?
+‹ Íÿ‘Ûò 8 y5ÿ}ßð ¯ù e±áÿÙÉ (-)Éášéåæãy» à¼f: Á¿ ? ÞLÇ (
--
Kuliax Project, Bringing Linux to Campus
Web:
http://kuliax.org
Log:
http://log.kuliax.org
IRC: #kuliax at
irc.freenode.net/irc.oftc.net
Subscription settings:
http://groups.google.com/group/kuliax-commits/subscribe?hl=en