You are not logged in.

#1 2017-06-24 21:42:30

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Porting bunsen-pepperflash to Arch Linux

Latest release (v0.1-5) available here

Custom Arch repository here

~~~~

empty@Xanadu:~ $ cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
ID_LIKE=archlinux
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"

empty@Xanadu:~ $ update-bunsen-pepperflash --status
Checking Flash version available from Adobe...
Upstream version: 26.0.0.131
There is no installed file /usr/lib/bunsen-pepperflash/libpepflashplayer.so
empty@Xanadu:~ $

Hmmm...

8)

Last edited by Head_on_a_Stick (2017-06-26 20:23:35)

Offline

#2 2017-06-24 21:48:27

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: Porting bunsen-pepperflash to Arch Linux

If ya ain't sneezin' there ain't no pepper!   O:)

 24 Jun 17 @ 18:49:11 ~
   $ update-bunsen-pepperflash --status
bash: update-bunsen-pepperflash: command not found
 
 24 Jun 17 @ 18:49:13 ~
   $ 

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3 2017-06-24 22:01:21

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

^ Just trying to see how easy it would be to port to Arch...

EDIT: @Dobbie, have the ArchLabs crew tried this yet?

EDIT2: it's quite easy actually:

Screenshotfrom2017-06-2423-10-28.th.png

cool

Now I just need to write a PKGBUILD  smile

Last edited by Head_on_a_Stick (2017-06-24 22:12:27)

Offline

#4 2017-06-24 22:12:13

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: Porting bunsen-pepperflash to Arch Linux

Oh  smile  I though you goofed ... how silly of me  - HoaS goofed ... that would never happen!  O:)

now don't go poppin' my bubble.  I don'r have it here yet.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#5 2017-06-25 02:27:55

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,673
Website

Re: Porting bunsen-pepperflash to Arch Linux

Head_on_a_Stick wrote:
...
empty@Xanadu:~ $ update-bunsen-pepperflash --status
Checking Flash version available from Adobe...
Upstream version: 26.0.0.131
There is no installed file /usr/lib/bunsen-pepperflash/libpepflashplayer.so
empty@Xanadu:~ $

Hmmm...

If the plugin has not yet been installed by this package, then /usr/lib/bunsen-pepperflash/libpepflashplayer.so would not be there, so no status to report. Try 'update-bunsen-pepperflash --install' (or '--help').

Does Arch support Debian-style package maintainer scripts? DEBIAN/postinst does a flash plugin download right after install - maybe you can do something similar for Arch?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#6 2017-06-25 06:26:07

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

^ Thanks for the tips John, I do have it working now  smile

I should be able to put together a PKGBUILD for it (I hope), would it be OK to upload it to the AUR for other Archers?

EDIT: gah! Spoke too soon:

empty@Xanadu:~ $ update-bunsen-pepperflash -s
Checking Flash version available from Adobe...                                            
Upstream version: 26.0.0.131                 
Installed version: 26.0.0.131                
/home/empty/bin/update-bunsen-pepperflash: line 129: dpkg: command not found              
You already have the newest version.         
1|empty@Xanadu:~ $

Back to the drawing board...

8)

Last edited by Head_on_a_Stick (2017-06-25 06:49:01)

Offline

#7 2017-06-25 14:11:35

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

empty@Xanadu:~ $ update-bunsen-pepperflash -s                                                                        
Checking Flash version available from Adobe...
Upstream version: 26.0.0.131
Installed version: 26.0.0.131
You already have the newest version.
1|empty@Xanadu:~ $

I am well pleased  O:)

Offline

#8 2017-06-25 18:01:38

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

OK, last post here 'cos I'm starting to hijack this thread:

empty@Xanadu:~/PKGBUILD/bunsen-pepperflash $ makepkg                                     
==> Making package: bunsen-pepperflash 0.1-1 (Sun 25 Jun 18:52:33 BST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found get-adobe-flashver.py
  -> Found update-bunsen-pepperflash
  -> Found bunsen-pepperflash.service
  -> Found bunsen-pepperflash.timer
==> Validating source files with sha1sums...
    get-adobe-flashver.py ... Passed
    update-bunsen-pepperflash ... Passed
    bunsen-pepperflash.service ... Passed
    bunsen-pepperflash.timer ... Passed
==> Extracting sources...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "bunsen-pepperflash"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: bunsen-pepperflash 0.1-1 (Sun 25 Jun 18:52:34 BST 2017)
empty@Xanadu:~/PKGBUILD/bunsen-pepperflash $ ls
bunsen-pepperflash-0.1-1-x86_64.pkg.tar.xz  PKGBUILD
bunsen-pepperflash.service                  src
bunsen-pepperflash.timer                    systemd-timer
get-adobe-flashver.py                       update-bunsen-pepperflash
pkg
empty@Xanadu:~/PKGBUILD/bunsen-pepperflash $

My first PKGBUILD  8)

And here it is:

# Maintainer: Head_on_a_Stick <redacted>

pkgname=bunsen-pepperflash
pkgdesc="Download script for Adobe's Pepper Flash Plugin with systemd .timer integration."
pkgver=0.1
pkgrel=1
arch=('i686' 'x86_64')
licence=('GPL')
depends=('gcc-libs' 'glibc')
optdepends=('flashplugin: Settings utility')
conflicts=('chromium-pepper-flash' 'pepper-flash')
url='https://github.com/Head-on-a-Stick'

source=('get-adobe-flashver.py'
	'update-bunsen-pepperflash'
	'bunsen-pepperflash.service'
	'bunsen-pepperflash.timer')

package() {
	install -Dm0644 get-adobe-flashver.py "$pkgdir"/usr/lib/bunsen/pepperflash/get-adobe-flashver.py
	install -Dm0644 update-bunsen-pepperflash "$pkgdir"/usr/bin/update-bunsen-pepperflash
	install -Dm0644 bunsen-pepperflash.service "$pkgdir"/usr/lib/systemd/system/bunsen-pepperflash.service
	install -Dm0644 bunsen-pepperflash.timer "$pkgdir"/usr/lib/systemd/system/bunsen-pepperflash.timer
}

sha1sums=('299aebc08263f86abadbf5c8e3e8278ad8488aee'
	  '137df86052b850bd40d6f94cc86c782ffc68d6c0'
	  '99e17b3396fa482819de771e9161dfe9401ec3ee'
	  '10f2586b34e60bb5004f9800ffda448df362f9b7')

And it installs just fine:

empty@Xanadu:~ $ pacman -Qs pepperflash                                                  
local/bunsen-pepperflash 0.1-1
    Download script for Adobe's Pepper Flash Plugin with systemd .timer integration.
empty@Xanadu:~ $

Now I just need a .INSTALL file to run `update-bunsen-pepperflash --install` after pacman finishes with it...

Last edited by Head_on_a_Stick (2017-06-25 18:06:09)

Offline

#9 2017-06-25 18:04:16

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

I've split this stuff off from COTC just in case anybody else finds it useful.

Offline

#10 2017-06-25 19:05:37

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: Porting bunsen-pepperflash to Arch Linux

Nice, HoaS...might go try Arch again one of these days.


Real Men Use Linux

Offline

#11 2017-06-25 20:12:54

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

Version bump!

Now at v0.1-2  8)

I've added bl-notify-broadcast & bl-notify-failure@.service 'cos they're awesome  cool

Current PKGBUILD here:

https://github.com/Head-on-a-Stick/conf … r/PKGBUILD

I will upload this to the AUR when I figure out how...

@johnraff & @nobody, please let me know if you want me to keep this private and not upload it to the AUR: they are your scripts after all.

Offline

#12 2017-06-25 20:47:32

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

Now @ v0.1-3

Erm, I forgot to add bash & python3 to the depends array...

:8

Offline

#13 2017-06-25 21:04:16

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

Right, tidied up the local scripts and got the real package installed and working:

empty@Xanadu:~ $ update-bunsen-pepperflash -s                                            
Checking Flash version available from Adobe...
Upstream version: 26.0.0.131
There is no installed file /usr/lib/PepperFlash/libpepflashplayer.so
empty@Xanadu:~ $ update-bunsen-pepperflash -i                                            
/home/empty/bin/update-bunsen-pepperflash error: -i: must be root to use this option
1|empty@Xanadu:~ $ sudo update-bunsen-pepperflash -i                                     
Checking Flash version available from Adobe...
Upstream version: 26.0.0.131
There is no installed file /usr/lib/PepperFlash/libpepflashplayer.so
Installing flash...
--2017-06-25 21:55:26--  https://fpdownload.adobe.com/pub/flashplayer/pdc/26.0.0.131/flash_player_ppapi_linux.x86_64.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving fpdownload.adobe.com... 23.44.101.35
Connecting to fpdownload.adobe.com|23.44.101.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9449172 (9.0M) [application/x-gzip]
Saving to: ‘/tmp/tmp.sSjzkGyX1x/flash_player_ppapi_linux.x86_64.tar.gz’

flash_player_ppapi_lin 100%[==========================>]   9.01M  2.71MB/s    in 3.3s    

2017-06-25 21:55:29 (2.71 MB/s) - ‘/tmp/tmp.sSjzkGyX1x/flash_player_ppapi_linux.x86_64.tar.gz’ saved [9449172/9449172]

Cleaning up...
Deleted /tmp/tmp.sSjzkGyX1x
empty@Xanadu:~ $ update-bunsen-pepperflash -s                                            
Checking Flash version available from Adobe...
Upstream version: 26.0.0.131
Installed version: 26.0.0.131
You already have the newest version.
1|empty@Xanadu:~ $ sudo systemctl enable --now bunsen-pepperflash.timer
empty@Xanadu:~ $ systemctl list-timers --no-pager                                        
NEXT                         LEFT         LAST                         PASSED             UNIT                         ACTIVATES
Mon 2017-06-26 00:00:00 BST  2h 2min left Sun 2017-06-25 13:24:10 BST  8h ago             bunsen-pepperflash.timer     bunsen-pepperflash.service
Mon 2017-06-26 00:00:00 BST  2h 2min left Mon 2017-06-19 16:01:25 BST  6 days ago         fstrim.timer                 fstrim.service
Mon 2017-06-26 00:00:00 BST  2h 2min left Sun 2017-06-25 07:07:25 BST  14h ago            logrotate.timer              logrotate.service
Mon 2017-06-26 00:00:00 BST  2h 2min left Sun 2017-06-25 07:07:25 BST  14h ago            man-db.timer                 man-db.service
Mon 2017-06-26 00:00:00 BST  2h 2min left Sun 2017-06-25 07:07:25 BST  14h ago            shadow.timer                 shadow.service
Mon 2017-06-26 20:07:19 BST  22h left     Sun 2017-06-25 18:52:18 BST  3h 5min ago        systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Sat 2017-07-01 00:00:00 BST  5 days left  Thu 2017-06-01 20:13:36 BST  3 weeks 3 days ago btrfs-scrub@-.timer          btrfs-scrub@-.service

7 timers listed.
Pass --all to see loaded but inactive timers, too.
empty@Xanadu:~ $

Job's a good 'un  smile

Now for the .INSTALL file, I think it should run `update-bunsen-pepperflash -i` after installation then print a message about the systemd .timer — this seems to be the preferred modus operandi with Arch packages, AFAICT.

Offline

#14 2017-06-25 21:40:28

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

empty@Xanadu:~/PKGBUILD/bunsen-pepperflash $ cat bunsen-pepperflash.install                                                 
post_install() {
	update-bunsen-pepperflash --install
}

post_remove() {
	rm -r /usr/lib/PepperFlash
}
empty@Xanadu:~/PKGBUILD/bunsen-pepperflash $

^ Works.

The modified update-bunsen-pepperflash script and bunsen-pepperflash.service systemd unit file can be found in my fork ("arch" branch):

https://github.com/Head-on-a-Stick/bunsen-pepperflash

It should all work if any Archers want to test this — any feedback is much appreciated, as always!

smile

Offline

#15 2017-06-25 22:06:31

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: Porting bunsen-pepperflash to Arch Linux

Head_on_a_Stick wrote:

^ Just trying to see how easy it would be to port to Arch...

EDIT: @Dobbie, have the ArchLabs crew tried this yet?

EDIT2: it's quite easy actually:

https://cdn.scrot.moe/images/2017/06/25/Screenshotfrom2017-06-2423-10-28.th.png

cool

Now I just need to write a PKGBUILD  smile

Not as yet HoaS.  We have been just using the Chromium Pepper Flash.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#16 2017-06-26 02:42:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,673
Website

Re: Porting bunsen-pepperflash to Arch Linux

Head_on_a_Stick wrote:

@johnraff & @nobody, please let me know if you want me to keep this private and not upload it to the AUR: they are your scripts after all.

Upload fine with me. This is FOSS and if anyone finds it useful, then great!
Good that you have yourself marked as package maintainer - I wouldn't want to have to handle bug reports from Arch users yikes


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Online

#17 2017-06-26 05:47:10

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,872

Re: Porting bunsen-pepperflash to Arch Linux

HoaS, I'll test on ArchLabs.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#18 2017-06-26 06:37:52

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

^ Thanks Dobbie!

I have to change the dependencies (again) and add some lines to bunsen-pepperflash.install so there should be a v0.1-4 out later — please wait until I bump the thread with that release, the current PKGBUILD leaves dirty traces after removal  :8

johnraff wrote:

I wouldn't want to have to handle bug reports from Arch users

Not to worry, I will open a thread in Community Contributions when the package is ready for showtime, any problems can be handled there.

Offline

#19 2017-06-26 17:31:20

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

New release: v0.1-5

I think this one is good for testing (finally!)  smile

To install the bunsen-pepperflash package in Arch Linux (or any of the derivatives), first clone my github repository and cd into it:

mkdir ~/git
cd ~/git
git clone https://github.com/Head-on-a-Stick/bunsen-pepperflash
cd bunsen-pepperflash

As always with any AUR packages, please read the PKGBUILD and also check the included bunsen-pepperflash.install script and do not install the package unless you are absolutely sure it will not damage your system (I am sure of this but no Archer should ever accept a third-party opinion in this matter); in this case the provided scripts and systemd custom unit files should also be examined carefully.

Then install the necessary dependencies, build the package and install it with:

makepkg -sri

Check the status of the custom .timer unit with:

systemctl list-timers

Please report any problems here (or on my github page) and be sure to include any relevant journal content:

sudo journalctl -u bunsen-pepperflash

Happy testing!

Last edited by Head_on_a_Stick (2017-06-26 17:49:17)

Offline

#20 2017-06-26 18:37:09

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Porting bunsen-pepperflash to Arch Linux

Hah! I've actually managed to get a proper package built in my openSUSE Build Repository   8)

https://software.opensuse.org//download … epperflash

Instructions:

Add this stanza to the end of /etc/pacman.conf:

[home_Head_on_a_Stick_Arch_Arch_Extra]
SigLevel = Never
Server = http://download.opensuse.org/repositories/home:/Head_on_a_Stick:/Arch/Arch_Extra/$arch

Then perform a full system update (read the news page first!) and install the package:

# pacman -Syu bunsen-pepperflash

Any further updates can then be pulled in with the usual `pacman -Syu`  cool

Offline

Board footer

Powered by FluxBB