Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kerrickstaley/3282776 to your computer and use it in GitHub Desktop.
Save kerrickstaley/3282776 to your computer and use it in GitHub Desktop.
+ name=pacaur
+ version=3.2.0
+ export LANG=C
+ LANG=C
+ source /etc/makepkg.conf
++ DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'rsync::/usr/bin/rsync -z %u %o' 'scp::/usr/bin/scp -C %u %o')
++ CARCH=x86_64
++ CHOST=x86_64-unknown-linux-gnu
++ CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
++ CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
++ LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro
++ MAKEFLAGS=-j4
++ BUILDENV=(fakeroot !distcc color !ccache check !sign)
++ BUILDDIR=/tmp/makepkg
++ OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
++ INTEGRITY_CHECK=(md5)
++ STRIP_BINARIES=--strip-all
++ STRIP_SHARED=--strip-unneeded
++ STRIP_STATIC=--strip-debug
++ MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
++ DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
++ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
++ PKGEXT=.pkg.tar.xz
++ SRCEXT=.src.tar.gz
+ tmpdir=/tmp/pacaurtmp-kerrick
+ builddir=/tmp/makepkg
+ editor='geany -i'
+ editpkgbuild=true
+ editinstall=true
+ fallback=true
+ clean=true
+ cleandevel=true
+ color=false
+ [[ -n /etc/xdg ]]
+ xdg_config=($(echo "${XDG_CONFIG_DIRS}" | awk -F ":" '{for (i=1; i<=NF; i++) print $i}' ))
++ echo /etc/xdg
++ awk -F : '{for (i=1; i<=NF; i++) print $i}'
+ for i in '${xdg_config[@]}'
+ [[ -d /etc/xdg ]]
+ export XDG_CONFIG_DIRS=/etc/xdg
+ XDG_CONFIG_DIRS=/etc/xdg
+ break
+ configDir=/etc/xdg/pacaur
+ userconfigDir=/home/kerrick/.config/pacaur
+ source /etc/xdg/pacaur/pacaur.conf
+ [[ -r /home/kerrick/.config/pacaur/config ]]
+ false
+ pacmanBin=pacman
+ cower=cower
+ [[ -d /tmp/pacaurtmp-kerrick ]]
+ [[ ! -w /tmp/pacaurtmp-kerrick ]]
+ [[ ! -d /tmp/pacaurtmp-kerrick ]]
+ [[ ! -d /tmp/makepkg ]]
+ args=("$@")
+ for i in '"${args[@]}"'
+ [[ -S =~ ^-[a-zA-Z0-9] ]]
+ opts+=("$i")
+ for i in '"${args[@]}"'
+ [[ phantomjs =~ ^-[a-zA-Z0-9] ]]
+ count=0
+ index=0
+ [[ -n -S ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ pacmanarg+=("-$OPT")
+ case "$OPT" in
+ pacS=1
+ operation=sync
+ coweropts+=("-f")
+ [[ -S =~ w ]]
+ installpkg=true
+ [[ -S =~ g ]]
+ [[ -S =~ l ]]
+ getopts sidmykufecqrahvVDQRSTUbglnoptw-: OPT
+ [[ -z phantomjs ]]
+ pkgs+=("${!OPTIND}")
+ shift 2
+ OPTIND=1
+ [[ -n '' ]]
+ pacmanarg=(${pacmanarg[@]/--/})
+ pacmanarg=(${pacmanarg[@]/-r/})
+ [[ -n 1 ]]
+ pacmanarg=(${pacmanarg[@]/-e/})
+ [[ -n 1 ]]
+ pacmanarg=(${pacmanarg[@]/-o/})
+ [[ ! -n geany -i ]]
+ [[ ! -f /usr/bin/pacman ]]
+ [[ ! -w /tmp/makepkg ]]
+ [[ -z phantomjs ]]
+ [[ -n '' ]]
+ case $operation in
+ [[ ! -n '' ]]
+ [[ ! -n phantomjs ]]
+ ClassifyPkgs phantomjs
+ [[ true = true ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ ! -n '' ]]
+ [[ ! -n '' ]]
+ GetIgnoredGrps
+ ignoredgrps+=($(grep '^ *IgnoreGroup' '/etc/pacman.conf' | cut -d '=' -f 2-))
++ grep '^ *IgnoreGroup' /etc/pacman.conf
++ cut -d = -f 2-
+ for i in '"${pkgs[@]}"'
+ [[ =~ phantomjs ]]
++ pacman -S --print phantomjs
++ grep -v error:
+ [[ -z '' ]]
+ aurpkgs+=("$i")
+ [[ -n '' ]]
+ [[ -n phantomjs ]]
+ [[ -n '' ]]
+ [[ true = true ]]
+ [[ ! -n '' ]]
+ warn 'Package(s) phantomjs not found in repositories, trying AUR...'
+ echo -e ':: Package(s) phantomjs not found in repositories, trying AUR...'
+ Core phantomjs
+ IgnoreChecks
+ [[ ! -n '' ]]
+ GetIgnoredPkgs
+ ignoredpkgs+=($(grep '^ *IgnorePkg' '/etc/pacman.conf' | cut -d '=' -f 2-))
++ grep '^ *IgnorePkg' /etc/pacman.conf
++ cut -d = -f 2-
+ [[ -e /home/kerrick/.config/cower/config ]]
+ ignoredpkgs=(${ignoredpkgs[@]//,/ })
+ [[ -z '' ]]
+ return
+ DownloadPkgs
+ allaurdeps+=("${aurpkgs[@]}")
+ FindPkgsDeps phantomjs
+ [[ -z '' ]]
+ depspkgsaur=("${aurpkgs[@]}")
+ DownloadAur phantomjs
+ [[ ! sync = download ]]
+ coweropts+=("-d")
+ coweropts+=("--ignorerepo")
+ deps+=($($cower ${coweropts[@]} $@ -t $builddir 2>"$tmpdir/repodeps" | awk -F " " '{print $2}'| sed -r "s:\x1B\[[0-9;]*[mK]::g"))
++ cower -f -d --ignorerepo phantomjs -t /tmp/makepkg
++ awk -F ' ' '{print $2}'
++ sed -r 's:\x1B\[[0-9;]*[mK]::g'
+ [[ sync = download ]]
+ [[ -e /tmp/pacaurtmp-kerrick/repodeps ]]
+ grep 'no results found for' /tmp/pacaurtmp-kerrick/repodeps
+ timeout phantomjs
++ echo phantomjs
++ grep -v 'resolve host name'
++ grep -v 'no results found for'
+ [[ -z phantomjs ]]
+ return 0
+ for i in '"${deps[@]}"'
+ [[ -e /tmp/makepkg/phantomjs/PKGBUILD ]]
+ . /tmp/makepkg/phantomjs/PKGBUILD
++ pkgname=phantomjs
++ pkgver=1.6.1
++ pkgrel=1
++ pkgdesc='Headless WebKit with JavaScript API'
++ url=http://www.phantomjs.org/
++ license=("BSD")
++ arch=('i686' 'x86_64')
++ depends=()
++ makedepends=('unzip')
++ conflicts=()
++ replaces=()
++ backup=()
++ install=
++ source=("http://phantomjs.googlecode.com/files/${pkgname}-${pkgver}-source.zip")
++ md5sums=('d169130eb9e7b483e6d3e927be07c8b3')
+ sourcedpkgs+=($(echo -e "${depends[*]}\n${makedepends[*]}"))
++ echo -e '\nunzip'
+ depspkgs=($($pacmanBin -T "${sourcedpkgs[@]}"))
++ pacman -T unzip
+ [[ -e /tmp/pacaurtmp-kerrick/aurdeps ]]
+ [[ -n '' ]]
+ [[ -e /tmp/pacaurtmp-kerrick/aurdeps ]]
+ unset depspkgsaur
+ unset deps sourcedpkgs depends makedepends depspkgs
+ [[ -n '' ]]
+ deps=("${allaurdeps[@]}")
+ repodeps=($(echo "${repodeps[@]}" | sed 's/ /\n/g' | sort -u))
++ echo
++ sed 's/ /\n/g'
++ sort -u
+ aurdepspkgs=(${deps[@]:${#aurpkgs[@]}:${#deps[@]}})
+ [[ -n '' ]]
+ [[ -n '' ]]
+ ConflictChecks
+ [[ ! -n '' ]]
+ local k=0
+ for i in '"${deps[@]}"'
+ unset conflicts
+ [[ -e /tmp/makepkg/phantomjs/PKGBUILD ]]
++ grep 'conflicts=(' /tmp/makepkg/phantomjs/PKGBUILD
+ [[ -n conflicts=() ]]
+ . /tmp/makepkg/phantomjs/PKGBUILD
++ pkgname=phantomjs
++ pkgver=1.6.1
++ pkgrel=1
++ pkgdesc='Headless WebKit with JavaScript API'
++ url=http://www.phantomjs.org/
++ license=("BSD")
++ arch=('i686' 'x86_64')
++ depends=()
++ makedepends=('unzip')
++ conflicts=()
++ replaces=()
++ backup=()
++ install=
++ source=("http://phantomjs.googlecode.com/files/${pkgname}-${pkgver}-source.zip")
++ md5sums=('d169130eb9e7b483e6d3e927be07c8b3')
+ [[ -z '' ]]
+ conflicts=($(expac -Q %n "$i"))
++ expac -Q %n phantomjs
+ conflicts=($(expac -Q %n "${conflicts[@]}"))
++ expac -Q %n phantomjs
+ [[ phantomjs =~ phantomjs ]]
+ continue
+ nothingtodo phantomjs
+ [[ -z phantomjs ]]
+ return 0
+ ReinstallChecks
+ exist=($(expac -Q %n "${aurpkgs[@]}"))
++ expac -Q %n phantomjs
+ Qversion=($(expac -Q %v "${aurpkgs[@]}"))
++ expac -Q %v phantomjs
+ (( i=0 ))
+ (( i<1 ))
+ [[ phantomjs =~ phantomjs ]]
+ GetAurVersion phantomjs
+ [[ -e /tmp/makepkg/phantomjs/PKGBUILD ]]
++ grep '^pkgver' /tmp/makepkg/phantomjs/PKGBUILD
++ cut -d = -f 2-
+ Apkgver=1.6.1
+ [[ -e /tmp/makepkg/phantomjs/PKGBUILD ]]
++ grep '^pkgrel' /tmp/makepkg/phantomjs/PKGBUILD
++ cut -d = -f 2-
+ Apkgrel=1
+ Aversion=1.6.1-1
++ vercmp 1.6.1-1 1.6.0-1
+ [[ 1 -gt 0 ]]
+ continue
+ (( i++ ))
+ (( i<1 ))
+ nothingtodo phantomjs
+ [[ -z phantomjs ]]
+ return 0
+ OutofdateChecks
+ for i in '"${deps[@]}"'
+ paraexec
+ DownloadJson phantomjs
+ [[ ! -f /tmp/pacaurtmp-kerrick/phantomjs.json ]]
++ jobs
++ wc -l
+ (( 1 >= 10 ))
+ wait
+ for i in '"${deps[@]}"'
+ [[ -e /tmp/pacaurtmp-kerrick/phantomjs.json ]]
++ grep '"OutOfDate":"1"' /tmp/pacaurtmp-kerrick/phantomjs.json
+ [[ -n '' ]]
+ Prompt
+ echo -e '\nAUR Targets (1): phantomjs\n'
+ [[ ! -n '' ]]
+ [[ -n true ]]
+ action=installation
+ proceedY 'Proceed with installation?'
+ echo -ne 'Proceed with installation? [Y/n] '
+ read -n 1 yn
+ echo ''
+ case $yn in
+ return 0
+ EditPkgs phantomjs
+ [[ -n '' ]]
+ for i in '"$@"'
+ unset install
+ [[ -e /tmp/makepkg/phantomjs/PKGBUILD ]]
+ source /tmp/makepkg/phantomjs/PKGBUILD
++ pkgname=phantomjs
++ pkgver=1.6.1
++ pkgrel=1
++ pkgdesc='Headless WebKit with JavaScript API'
++ url=http://www.phantomjs.org/
++ license=("BSD")
++ arch=('i686' 'x86_64')
++ depends=()
++ makedepends=('unzip')
++ conflicts=()
++ replaces=()
++ backup=()
++ install=
++ source=("http://phantomjs.googlecode.com/files/${pkgname}-${pkgver}-source.zip")
++ md5sums=('d169130eb9e7b483e6d3e927be07c8b3')
+ [[ ! -n '' ]]
+ [[ ! true = false ]]
+ proceedY ':: Edit phantomjs PKGBUILD?'
+ echo -ne ':: Edit phantomjs PKGBUILD? [Y/n] '
+ read -n 1 yn
+ echo ''
+ case $yn in
+ return 1
+ [[ ! true = false ]]
+ [[ -n '' ]]
+ MakePkgs
+ sudo -v
+ deps=($(echo "${deps[@]}" | awk -F "\n" '{print}' | awk -F " " '{for (i=NF;i>=1;i--) print $i}'))
++ echo phantomjs
++ awk -F '\n' '{print}'
++ awk -F ' ' '{for (i=NF;i>=1;i--) print $i}'
+ [[ false != true ]]
+ makeopts+=("--nocolor")
+ export PACMAN=pacman
+ PACMAN=pacman
+ [[ ! -n true ]]
+ [[ -n '' ]]
+ for i in '"${deps[@]}"'
+ [[ -n '' ]]
+ [[ -n '' ]]
+ makeopts=(${makeopts[@]/--clean/})
+ [[ true = true ]]
+ [[ true = true ]]
+ makeopts+=("--clean")
+ [[ -e /tmp/makepkg/phantomjs/PKGBUILD ]]
+ info 'Building phantomjs package...'
+ echo -e ':: Building phantomjs package...'
+ cd /tmp/makepkg/phantomjs
+ [[ -n true ]]
+ yes
+ makepkg -sfi --nocolor --clean
==> Making package: phantomjs 1.6.1-1 (Tue Aug 7 00:56:25 CDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Downloading phantomjs-1.6.1-source.zip...
** Resuming transfer from byte position 516096
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 37.1M 100 37.1M 0 0 41393 0 0:15:40 0:15:40 --:--:-- 87199
==> Validating source files with md5sums...
phantomjs-1.6.1-source.zip ... Passed
==> Extracting Sources...
-> Extracting phantomjs-1.6.1-source.zip with bsdtar
==> Starting build()...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: phantomjs 1.6.1-1 (Tue Aug 7 01:29:55 CDT 2012)
==> Installing package phantomjs with pacman -U...
==> WARNING: Failed to install built package(s).
==> Cleaning up...
+ [[ -n true ]]
+ [[ ! -n '' ]]
+ [[ phantomjs =~ phantomjs ]]
+ [[ =~ --asdeps ]]
+ [[ =~ --asexplicit ]]
+ [[ ! -n true ]]
+ exit
## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##
##
## Host alias specification
##
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias WEBSERVERS = www1, www2, www3
##
## User alias specification
##
## Groups of users. These may consist of user names, uids, Unix groups,
## or netgroups.
# User_Alias ADMINS = millert, dowdy, mikef
##
## Cmnd alias specification
##
## Groups of commands. Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
# /usr/bin/pkill, /usr/bin/top
##
## Defaults specification
##
## You may wish to keep some of the following environment variables
## when running commands via sudo.
##
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
##
## Run X applications through sudo; HOME is used to find the
## .Xauthority file. Note that other programs use HOME to find
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
##
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
##
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
##
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
##
## Uncomment to enable special input methods. Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
##
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!/sbin/reboot !log_output
##
## Runas alias specification
##
##
## User privilege specification
##
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
%sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment