Skip to content

Bootstrap pianobar install/update #343

Closed
wants to merge 12 commits into from

2 participants

@memborsky

Note: This set of scripts works for Mac OS X 10.7+ and Ubuntu 12.04 only currently.

This set of scripts will build and/or update a users pianobar installation.

Simply run script/update to update pianobar from within the pianobar root source folder, or script/bootstrap to install for the first time.

  • During installation (Mac OS X)
    mac-install-json

  • Installation complete (Mac OS X)
    mac-install-complete

  • /tmp/pianobar-bootstrap (Mac OS X)

==> Downloading https://github.com/downloads/json-c/json-c/json-c-0.10.tar.gz
Already downloaded: /Users/matt/Library/Caches/Homebrew/json-c-0.10.tar.gz
==> ./configure --prefix=/usr/local/Cellar/json-c/0.10
==> make install
/usr/local/Cellar/json-c/0.10: 23 files, 196K, built in 19 seconds
    CC  src/main.c
    CC  src/player.c
    CC  src/settings.c
    CC  src/terminal.c
    CC  src/ui_act.c
    CC  src/ui.c
    CC  src/ui_readline.c
    CC  src/ui_dispatch.c
    CC  src/libpiano/crypt.c
    CC  src/libpiano/piano.c
    CC  src/libpiano/request.c
    CC  src/libpiano/response.c
    CC  src/libwaitress/waitress.c
  LINK  pianobar
install -d //usr/local/bin/
install -m755 pianobar //usr/local/bin/
install -d //usr/local/share/man/man1/
install -m644 contrib/pianobar.1 //usr/local/share/man/man1/
  • During installation (Ubuntu 12.04)
    ubuntu-install-json

  • Installation complete (Ubuntu 12.04)
    ubuntu-install-complete

  • /tmp/pianobar-bootstrap (Ubuntu 12.04)

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  libjson0-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/69.5 kB of archives.
After this operation, 614 kB of additional disk space will be used.
Selecting previously unselected package libjson0-dev.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 91406 files and directories currently installed.)
Unpacking libjson0-dev (from .../libjson0-dev_0.9-1ubuntu1_i386.deb) ...
Setting up libjson0-dev (0.9-1ubuntu1) ...
    CC  src/main.c
src/main.c: In function ‘BarMainGetLoginCredentials’:
src/main.c:148:10: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
    CC  src/player.c
    CC  src/settings.c
    CC  src/terminal.c
    CC  src/ui_act.c
    CC  src/ui.c
    CC  src/ui_readline.c
    CC  src/ui_dispatch.c
    CC  src/libpiano/crypt.c
    CC  src/libpiano/piano.c
    CC  src/libpiano/request.c
    CC  src/libpiano/response.c
    CC  src/libwaitress/waitress.c
  LINK  pianobar
install -d //usr/local/bin/
install -m755 pianobar //usr/local/bin/
install -d //usr/local/share/man/man1/
install -m644 contrib/pianobar.1 //usr/local/share/man/man1/

The original concept of this type of bootstrap script came from https://github.com/play/play/tree/v3

memborsky added some commits Jan 9, 2013
@PromyLOPh
Owner
@memborsky

Not exactly. You made mention, #281, for install instructions per distro. This provides that for the user without their need for completing the steps manually.

@PromyLOPh
Owner
@memborsky memborsky Simplify the way we check for a setup script for each $OS. Move sime …
…files around to make the folder structure a little more simplified.
e676372
@memborsky

The problem with package managers for this type of application is the delay in getting the updates merged in. Rebuilding from source for the TLS changes or any other quirks that come up from Pandora Media's restrictive nature for third-party applications.

@PromyLOPh
Owner
@memborsky memborsky closed this Mar 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.