code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
Shell
#!/bin/sh aclocal || exit 1 autoheader || exit 1 autoconf || exit 1 automake -a -c || exit 1 ./configure
Shell
#!/bin/sh aclocal || exit 1 autoheader || exit 1 autoconf || exit 1 automake -a -c || exit 1 ./configure
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2007-03-29.01 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public ...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redi...
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2007-03-29.01 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public ...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-12-25.00 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby ...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redi...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-12-25.00 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby ...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` cd $SCRIPTDIR/.. RED="0.5 0.5 0.5 0 0 0 0 0 0" GREEN="0 0 0 0.5 0.5 0.5 0 0 0" for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do conv...
Shell
#!/bin/sh # make sure ndk-build is in path SCRIPTDIR=`dirname $0` MUPDF_FILE=mupdf-snapshot-20111207.tar.gz MUPDF=mupdf #MUPDF_FILE=mupdf-0.9-source.tar.gz #MUPDF=mupdf-0.9 FREETYPE=freetype-2.4.6 OPENJPEG=openjpeg_v1_4_sources_r697 JBIG2DEC=jbig2dec-0.11 JPEGSRC=jpegsrc.v8a.tar.gz JPEGDIR=jpeg-8a cd $SCRIPTDIR/../de...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` cd $SCRIPTDIR/.. for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png done
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/usr/bin/env bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright ...
Shell
#!/usr/bin/env bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
#!/bin/bash # Copyright (c) 2013, Regents of the University of California # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # Redistributions of source code must retain the above copyright notice, ...
Shell
# Contributor: Xyne <xyne at archlinux dot us> pkgname=makerepo pkgver=1.13 pkgrel=1 pkgdesc="A tool to simplify repository maintenance." depends=('curl' 'perl') optdepends=('abs' 'pacpan') arch=('any') license=('GPL') url="http://xyne.archlinux.ca/info/${pkgname}" source=(http://xyne.archlinux.ca/src/${pkgname}-${pkgv...
Shell
# Archlive <http://archlive-pkg.googlecode.com> pkgname=libssh2-git pkgver=20091023 pkgrel=1 pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts" url="http://www.libssh2.org/" arch=('i686' 'x86_64') license=('BSD') depends=('openssl') makedepends=('zlib') provides=(libssh2 libssh2=1.2.2) co...
Shell
# GAdmin-Rsync: Installer: Arch # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com> # Update: Carbon Jiao <http://archlive-pkg.googlecode.com> pkgname=gadmin-rsync-cn _realpkgname=gadmin-rsync pkgver=0.1.1 pkgrel=1 pkgdesc="An easy to use GTK+ frontend for the rsync backup client and server." arch=('i686' 'x86_64')...
Shell
#Contributor: MacWolf <macwolf@archlinux.de> # Update: Carbon Jiao <http://archlive-pkg.googlecode.com> # Disabled qt... pkgname=vlc-git pkgver=20090424 pkgrel=1 pkgdesc="VideoLAN Client is a multi-platform MPEG, VCD/DVD, and DivX player.Development GIT Version." depends=('libmad' 'libmpeg2' 'ffmpeg' \ 'hal' ...
Shell
# Carbon Jiao <http://archlive-pkg.googlecode.com> pkgname=fcitx-svn-mini pkgver=258 pkgrel=1 url=http://code.google.com/p/fcitx pkgdesc="fcitx mini, just have pinyin, wubi, erbi" arch=('i686' 'x86_64') license=('GPL') depends=('libxft' 'libxpm') makedepends=('automake' 'gettext' 'libxtst' 'xextproto') provides=('fcitx...
Shell
# Archlive <http://archlive-pkg.googlecode.com> pkgname=lrcdis-svn pkgver=100 pkgrel=1 pkgdesc="lrcdis is a bash script for auto download lyrics and display it." arch=('any') url="http://code.google.com/p/lrcdis" license=('GPL2') depends=('bash') source=() _svntrunk=http://lrcdis.googlecode.com/svn/trunk _svnmod=lrcd...
Shell
# Maintainer: TDY <tdy@gmx.com> pkgname=foxitreader pkgver=1.0 pkgrel=3 pkgdesc="A small, fast PDF viewer" arch=('i686' 'x86_64') url="http://www.foxitsoftware.com/pdf/desklinux/" license=('custom') depends=('desktop-file-utils' 'gtk2') [[ $CARCH = x86_64 ]] && depends=('desktop-file-utils' 'lib32-gtk2' 'lib32-libxdam...
Shell
#!/bin/bash # Adapted from: Chen Xing <cxcxcxcx gmail com> if [[ $(uname -m) = x86_64 ]]; then GCONV_PATH=/opt/lib32/usr/lib/gconv GDK_PIXBUF_MODULE_FILE=/opt/lib32/config/gdk/gdk-pixbuf.loaders GTK_IM_MODULE_FILE=/etc/gtk-2.0/gtk.immodules.32 GTK_MODULES=/opt/lib32/usr/lib/gtk-2.0/modules/libgnomebreakpad.so ...
Shell
# Contributor: Carbon Jiao <http://archlive-pkg.googlecode.com> pkgname=benliud pkgver=0.3.3.2 pkgrel=1 pkgdesc="BT下载工具" arch=('i686' 'x86_64') url="http://groups.google.com/group/benliud" license=('custom') depends=() optdepends=() install=() source=(#http://benliud.googlegroups.com/web/benliud-0.3.3.2-u804.tar.bz2?g...
Shell
# Contributor: angrycore <angrycore@gmail.com> pkgname=grdc pkgver=0.6.0 pkgrel=1 pkgdesc="Grdc is a remote desktop client based on GTK+. Supports RDP (rdesktop) and VNC (LibVNCClient)." arch=(i686 x86_64) url="http://grdc.sourceforge.net/" license=('GPL') source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-...
Shell
# Contributor: Ondrej Martinak <omartinak@gmail.com> pkgname=vifm-git pkgver=20090822 pkgrel=1 pkgdesc="Ncurses based file manager with vi like keybindings." arch=('i686' 'x86_64') url="http://vifm.sourceforge.net/" license=('GPL') depends=('bash' 'ncurses') makedepends=('git') conflicts=('vifm') provides=('vifm') _g...
Shell
# Archlive <http://archlive-pkg.googlecode.com> pkgname=ofetion-libpurple pkgver=402 pkgrel=1 pkgdesc="Libpurple plugin of ofetion" url="http://ofetion.googlecode.com/" license="GPL" arch=(i686 x86_64) depends=('libpurple' 'libxml2' 'openssl') makedepends=('cmake' 'mercurial' 'gettext') _hgroot="https://ofetion.googl...
Shell
# Contributor: Dennis Brendel <buddabrod@gmail.com> pkgname=mplayer-svn pkgver=29219 pkgrel=1 pkgdesc="A movie player for linux" arch=('i686' 'x86_64') depends=('libxxf86dga' 'libxv' 'libmad' 'giflib' 'cdparanoia' 'gtk2' 'sdl' 'lame' 'libtheora' 'xvidcore' 'zlib' 'libmng' 'libxss' 'libgl' 'smbclient...
Shell
# Archlive <http://archlive-pkg.googlecode.com> pkgname=remmina-plugins pkgver=0.7.99.1 pkgrel=1 pkgdesc="Plugins for Remmina, including xdmcp vnc telepathy rdp and etc." arch=(i686 x86_64) url="http://sourceforge.net/projects/remmina/" license=('GPL') source=($pkgname-$pkgver.tar.gz::"http://downloads.sourceforge.net...
Shell
# Contributor: Marius Dransfeld <marius.dransfeld@googlemail.com> pkgname=ffmpeg-mt-git pkgver=20090610 pkgrel=1 pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix (Multithread build, git version)" arch=('i686' 'x86_64') url="http://ffmpeg.mplayerhq.hu/" license=('GPL') depen...
Shell
# $Id$ # Maintainer: Eduardo Romero <eduardo@archlinux.org> pkgname=wine pkgver=1.1.32 pkgrel=1 pkgdesc="A compatibility layer for running Windows programs" url="http://www.winehq.com" arch=('i686') license=('LGPL') depends=('fontconfig' 'libldap' 'libxslt' 'lcms' 'libxxf86dga' \ 'libxcursor' 'libxrandr' 'libx...
Shell
# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu> pkgname="openbsd-netcat" pkgver=1.89 pkgrel=3 pkgdesc="TCP/IP swiss army knife. OpenBSD variant." arch=('i686' 'x86_64') url="http://packages.debian.org/sid/netcat-openbsd" license=('BSD') depends=('glib2') makedepends=('gcc' 'make') source=("http://ftp.debian....
Shell
# Maintainer: xaiviax (xaiviax at comcast dot net) # Update: Carbon Jiao Added autoshutdown support. pkgname=deluge-svn pkgver=5344 pkgrel=1 pkgdesc="python和pygtk写的BT下载软件,加入了autoshutdown插件" arch=('i686' 'x86_64') url="http://deluge-torrent.org/" license=('GPL2') depends=('pygtk' 'boost' 'pyxdg' 'dbus-python' 'librsvg...
Shell
#http://midori.yo2.cn/opencore-amr-pkgbuild.html pkgname=opencore-amr pkgver=20090720 pkgrel=1 pkgdesc="Library of OpenCORE Framework implementation of Adaptive Multi Rate Narrowband and Wideband speech codec" arch=('i686' 'x86_64') url="http://opencore-amr.sourceforge.net" license=('LGPL') depends=('glibc') options=(...
Shell
# Contributor: Tim Yang <tdy@gmx.com> pkgname=python-pymedia pkgver=1.3.7.3 pkgrel=1 pkgdesc="A Python library for accessing and manipulating multimedia files" arch=('i686' 'x86_64') url="http://pymedia.org/" license=('LGPL') depends=('alsa-lib' 'ffmpeg' 'python') optdepends=('faad2: AAC support' 'lame: MP3...
Shell
#!bin/bash # 从人民网获取24、48小时天气数据 if [ ! -f /tmp/gz_weather ]; then ping -c1 121.14.89.14 >> /dev/null if [ $? -eq 0 ]; then # 华南地区: 广州 353-359行 深圳 362-368行 汕头 371-377行 # 华中地区: 郑州 381-387行 武汉 392-398行 links -no-g -source "http://card.people.com.cn/forecast/inland24.jsp?aboard=0&interval=24"|sed -n '353,359p...
Shell
# Contributor: Carbon Jiao <http://archlive-pkg.googlecode.com> pkgname=conky-archlive pkgver=2 pkgrel=2 pkgdesc="Archlive的Conky配置" arch=('i686' 'x86_64') url="http://archlive-pkg.googlecode.com" license=('GPL') depends=('conky' 'lm_sensors' 'hddtemp' 'links' 'gxmessage' 'ttf-openlogos') install=$pkgname.install source...
Shell
# Archlive <http://archlive-pkg.googlecode.com> pkgname=aufs2-util-git pkgver=20090810 pkgrel=1 pkgdesc="aufs2 utils" arch=("i686") url="http://aufs.sourceforge.net" license=('GPL') depends=("bash") conflicts=("aufs-utils") _gitroot="http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-util.git" _gitname="aufs2-util" build() { ...
Shell
# Carbon Jiao <http://archlive-pkg.googlecode.com> pkgname=drcom-pum pkgver=1.0 pkgrel=1 pkgdesc="Dr.COM计费网关图形界面, DrCOM-client GUI for Linux(本版本无需drcom-client)" arch=('i686' 'x86_64') url="http://www.drcom-client.org" license=('GPL') depends=('python-notify') makedepends=() provides=('drcom-pum') install=() source=(ht...
Shell
pkgname=your-freedom pkgver=20090705 pkgrel=1 pkgdesc="Your Freedom is a service to do two things: Bypass Firewalls, Proxies and content Filters and stay anonymous while surfing, playing and downloading" arch=('i686' 'x86_64') url="http://www.your-freedom.net/" license=('custom') depends=("java-runtime") source=("http:...
Shell
#!/bin/bash JAVA=$(which java) $JAVA -jar /usr/share/java/your-freedom/freedom.jar
Shell
# Contributor: zhuqin <zhuqin83@gmail.com> pkgname=gmlive-svn _realname=gmlive pkgver=255 pkgrel=1 pkgdesc="A live video for linux, powered by mms, sopcast and nslive." arch=(i686) #i686 only for non-free sopcast & nslive license=('GPL') depends=('libglademm>=2.4.0' 'gtkmm>=2.6.0' 'sopcast' 'mplayer') makedepends=('su...
Shell
# Carbon Jiao <http://archlive-pkg.googlecode.com> pkgname=larchin-syscalls-svn _realpkgname=larchin-syscalls pkgver=407 pkgrel=1 pkgdesc="larch项目之一,安装archlive系统到硬盘, 加入了中文支持" url="http://larch.berlios.de" depends=() arch=(i686 x86_64) license=('GPL') src=() _svnmod="larchin-syscalls" _svntrunk="http://svn.berlios.de/...
Shell
#!/bin/bash # general config . /etc/rc.conf . /etc/rc.d/functions PID=`pidof -o %PPID /usr/bin/ivman` case "$1" in start) stat_busy "Starting ivman Device Manager" if [ -z "$PID" ]; then if [ ! -f /etc/ivman/IvmConfigBase.xml ]; then echo "ERROR: Make sure '/etc/ivman/I...
Shell
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ # Maintainer: Bryan Bennett <synorgy@gmail.com> pkgname=ivman pkgver=0.6.14 pkgrel=1 pkgdesc="Console based device manager" license=('GPL' 'QPL') arch=(i686 x86_64) url="http://ivman.sourceforge.net/" depends=('hal>=0.5.8.1-2' 'libxml2' 'pmount>=0.9.13-2') makedepends=(...
Shell
# Archlive <http://archlive-pkg.googlecode.com> pkgname=remmina-svn pkgver=225 pkgrel=1 pkgdesc="Remmina is a remote desktop client written in GTK+. " #"Remmina supports multiple network protocols in an integrated and consistant user interface. Currently RDP, VNC, XDMCP and SSH are supported." arch=(i686 x86_64) url="...
Shell
# Contributor: fancris3 <fancris3 at gmail.com> # Contributor: Biru Ionut <biru.ionut at gmail.com> pkgname=gfxboot pkgver=4.1.19 _pkgver=2.1 pkgrel=2 arch=('i686' 'x86_64') license=(GPL) install=('gfxboot.install') pkgdesc="Graphical Boot Logo tool" url="http://www.opensuse.org" depends=('perl-html-parser' 'freetype2...
Shell
# Contributor: Carbon Jiao <http://archlive-pkg.googlecode.com> pkgbase=('pidgin') pkgname=('libpurple' 'pidgin' 'finch') #pkgver=20100106 pkgver=$(date +%Y%m%d) pkgrel=1 arch=('i686' 'x86_64') url="http://pidgin.im/" license=('GPL') makedepends=('monotone' 'startup-notification' 'perlxml' 'gtkspell' 'libnice' 'libidn...
Shell
#!/bin/sh CONFIGURE_ARGS="" if [ -f configure.args ] ; then . configure.args fi (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || { echo; echo "You must have glib-gettextize installed to compile Pidgin."; echo; exit 1; } (intltoolize --version) < /dev/null > /dev/null 2>&1 || { echo; echo "You must ...
Shell
# Archlive <http://archlive-pkg.googlecode.com> pkgname=busybox pkgver=1.14.2 pkgrel=3 pkgdesc="Utilities for rescue and embedded systems, with HTTPd support" arch=("i686" "x86_64") url="http://busybox.net" license=('GPL') makedepends=("make" "gcc" "sed" "ncurses") replaces=("tar" "sed" "cpio" "coreutils" "syslogd" "ti...
Shell
#!/bin/bash #universal daemon controller # general config . /etc/rc.conf . /etc/rc.d/functions daemonid="busybox-httpd" #arch-style daemon identification binary="/usr/bin/busybox-httpd" #daemon binary pidfile="/var/run/$daemonid.pid" #maybe you don't need to change this... description="BusyBox HTTP Daemon" #dae...
Shell
#!/bin/sh bind='80'; #-p [IP:]PORT Bind to ip:port (default *:80) root='/srv/http'; #-h HOME Home directory (default .) conf='/etc/busybox/httpd.conf'; #-c FILE Configuration file (default httpd.conf) user='http:http'; #-u USER[:GRP] Set uid/gid after binding to port (make sure that user exists) realm='Protec...
Shell
#!/bin/sh . /etc/busybox/httpd-rc.conf tail -f "$log";
Shell
#!/bin/sh bind='80'; root='/srv/http'; conf='/etc/busybox/httpd.conf'; user='http:http'; realm='Protected Area'; log='/var/log/busybox-httpd.log'; pidfile='/var/run/busybox-httpd.pid'; . /etc/busybox/httpd-rc.conf if [ ! -z "$1" ]; then pidfile="$1"; fi; echo -e "\n[!] HTTPd restarted: $(date -R)" >> "$log"; /bin/...
Shell
pkgname=pppoe-conf pkgver=0.1 pkgrel=1 pkgdesc="ADSL/PPPoE配置工具" arch=('i686' 'x86_64') url="http://archlive-pkg.googlecode.com" license=('GPL') depends=('gettext' 'sakura') source=() md5sums=() build() { cp -r $startdir/{usr,etc} $pkgdir/ install -d $pkgdir/usr/share/locale/zh_CN/LC_MESSAGES cp $pkgdir/usr/net-set...
Shell
#!/bin/bash # functions . /etc/rc.conf . /etc/rc.d/functions . /etc/rc.d/functions.d/cmdline # configs . /etc/chakra-hwdetect.conf # needed hooks (located in /opt/chakra/hooks) LOAD_HOOKS="hwdetect_1_base hwdetect_2_platform hwdetect_3_power hwdetect_4_network hwdetect_5_alsa hwdetect_6_graphics" # load hooks for h...
Shell
#!/bin/bash . /etc/rc.conf . /etc/rc.d/functions case "$1" in start) stat_busy "Configuring graphics" /opt/chakra/bin/xorg-config.sh stat_done ;; stop) ;; restart) $0 stop sleep 1 $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac
Shell
#!/bin/bash . /etc/rc.conf . /etc/rc.d/functions case "$1" in start) stat_busy "Configuring X.org" /opt/chakra/bin/xorg-detect.sh stat_done ;; stop) ;; restart) $0 stop sleep 1 $0 start ;; *) echo "usage: $0 {start|stop|restart}" esac
Shell
#!/bin/bash # functions . /etc/rc.conf . /etc/rc.d/functions . /etc/rc.d/functions.d/cmdline # configs . /etc/chakra-hwdetect.conf # lets start case "$1" in start) stat_busy "Testing network" ping_check=$(ping -c 1 www.google.com | grep "1 received") if [ "${ping_check}" != "" ] ; then printhl2 "Succe...
Shell
#!/bin/bash . /etc/rc.conf . /etc/rc.d/functions AMIXER="/usr/bin/amixer" case "$1" in start) stat_busy "Setting up audio volume levels" # doing it brute-force, baby... output levels $AMIXER -c 0 sset "Master" 70% unmute &>/dev/null $AMIXER -c 0 sset "Front" 70% unmute &>/dev/null $AMIXER -c 0 sset "Side" 70...
Shell
pkgname=chakra-archlive pkgver=0.0.1 pkgrel=1 pkgdesc="Chakra硬件检测配置程序,Archlive定制修改版 " arch=('any') url="http://archlive-pkg.googlecode.com" depends=('bc' 'util-linux-ng') license=('GPL') build() { cp -rf ${startdir}/etc ${startdir}/pkg cp -rf ${startdir}/opt ${startdir}/pkg find ${startdir}/pkg -type d -name '.s...
Shell
#!/bin/bash hwdetect_network() { # try to fix some problems with realtek network cards network_check_8139=$(lsmod | grep 8139cp || lsmod | grep 8139too) if [ -n "${network_check_8139}" ]; then network_8139cp=$(dmesg | grep -i 'Try the "8139too" driver instead') network_8139too=$(dmesg | grep -i 'Try the "...
Shell
#!/bin/bash hwdetect_enable_govenor() { # bruteforce ;) if [ -e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" ] ; then echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor &>/dev/null elif [ -e "/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor" ] ; then echo "ondemand" > /...
Shell
#!/bin/bash hwdetect_platform() { # check platform /opt/chakra/bin/platform-detect &>/dev/null if [ $? -ne 0 ]; then printhl "This machine seems to be a desktop computer" # create status file for postinstall touch /tmp/platform-desktop # install platform-specific tools # bla blubb else pr...
Shell
#!/bin/bash hwdetect_alsa() { # amixer binary alsa_amixer="/usr/bin/amixer" # enable all known (tm) outputs $alsa_amixer -c 0 sset "Master" 70% unmute &>/dev/null $alsa_amixer -c 0 sset "Front" 70% unmute &>/dev/null $alsa_amixer -c 0 sset "Side" 70% unmute &>/dev/null $alsa_amixer -c 0 sset "Surround" 7...
Shell
#!/bin/bash hwdetect_base() { # check cpu base_check_cpu=$(uname -p) printhl "Running on a ${base_check_cpu}" # check mem base_check_mem=$(grep "MemTotal" /proc/meminfo | sed 's/[ kB]//g' | cut -f2 -d":") base_mem_checked=$(($base_check_mem/1024)) base_needed_mem="384" if [ ${base_mem_checked} -lt ${b...
Shell
#!/bin/bash # config is in /etc/chakra-hwdetect.conf hwdetect_graphics() { NONFREE=`get_nonfree` [ -n "$NONFREE" ] || NONFREE="yes" case "$NONFREE" in yes) # check for vendors CARD_NVIDIA=$(lspci -n | sed -n "s/.* 0300: 10de:\(....\).*/\1/p") CARD_ATI=$(lspci -n | sed -n "s/.* 0300: 1002:\(....\).*/\1/p")...
Shell
# Maintainer: Nicholas Lee <lnzju@baidu.com> pkgname=fcitx-svn-ibus pkgver=248 pkgrel=1 url=http://code.google.com/p/fcitx pkgdesc="fcitx with pyPhrase.org from ibus, perfect as a PinYin IM" arch=('i686' 'x86_64') license=('GPL') depends=('libxft' 'libxpm') makedepends=('automake' 'gettext' 'libxtst' 'xextproto') provi...
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ exec ck-launch-session fluxbox
Shell
# Archlive <http://archlive-pkg.googlecode.com> pkgname=slim-archlive _pkgname=slim pkgver=1.3.1 pkgrel=1 pkgdesc="Simple Login Manager with changeable cursor and other patches" arch=(i686 x86_64) url="http://slim.berlios.de" backup=(etc/slim.conf) depends=(gcc-libs libxmu libxft libjpeg libpng bash pam) provides=(sli...
Shell
#!/bin/sh # # ~/.xinitrc # 字体分辨率 XRESOURCES=`mktemp /tmp/xrdb.XXXXXX` cat >> $XRESOURCES << EOF Xft.dpi: 96 Xft.hinting: 1 Xft.hintstyle: hintmedium EOF export LANG=zh_CN.UTF-8 export LC_ALL=zh_CN.UTF-8 export XMODIFIERS="@im="fcitx" export GTK_IM_MODULE="fcitx" export QT_IM_MODULE="fcitx" xrdb -nocpp -merge $XRESOU...
Shell
#!/bin/sh # $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $ exec ck-launch-session openbox-session
Shell
#!/bin/bash . /etc/rc.conf . /etc/rc.d/functions lockfile=$(grep lockfile /etc/slim.conf |tr -s " " | cut -d" " -f2) pid=$(pidof -o %PPID /usr/bin/slim) case "$1" in start) if [ "$cn" ="y" ] || [ "${LOCALE%_*}x" = "zhx" ]; then stat_busy "正在启动 SLIM登录管理器" else stat_busy "Starting Simple Login Manager" ...
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ...
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ exec ck-launch-session /usr/bin/gnome-session
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ exec ck-launch-session icewm-session
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ exec ck-launch-session startlxde
Shell
#!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) # #!/bin/sh # Has to go prior to merging Xft.xrdb, as its the "Defaults" file test -r "/etc/X11/xdg/xfce4/Xft.xrdb" && XRESOURCES="$XRESOURCES /etc/X11/xdg/xfce4/Xft.xrdb" test -r $HOME/.Xdefaults && XRESOURCES="$XRESOURCES $HOME/.Xd...
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ exec ck-launch-session starte16
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ exec ck-launch-session startkde
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ...
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ exec ck-launch-session enlightenment_start
Shell
#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ exec lxlauncher
Shell
#!/bin/bash # $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $ # # Special custom for Archlive # Carbon Jiao <http://archlive.googlecode.com> # # $XFree86: xc/programs/xdm/config/Xsession,v 1.2 1998/01/11 03:48:32 dawes Exp $ # Modified for Slackware-3.5, 28-Mar-98 volkerdi # Extensively rewritten for Sla...
Shell