Package Details: fortune-mod-bofh-excuses 20151113.024512-1

Git Clone URL: https://aur.archlinux.org/fortune-mod-bofh-excuses.git (read-only)
Package Base: fortune-mod-bofh-excuses
Description: BOFH excuses fortune cookie files
Upstream URL: http://www.cs.wisc.edu/~ballard/bofh/
Licenses: Public Domain
Groups: fortune-mods
Submitter: Tblue
Maintainer: Tblue
Last Packager: Tblue
Votes: 55
Popularity: 0.000273
First Submitted: 2009-04-03 22:26
Last Updated: 2017-02-12 16:45

Required by (1)

Sources (0)

Pinned Comments

ekaljuk commented on 2015-02-01 06:29

To use this command, type "fortune bofh-excuses" at the prompt.

Latest Comments

Tblue commented on 2017-02-12 16:46

Alad: Thanks, fixed.

Alad commented on 2017-02-09 09:03

-> Downloading data file...
Warning: Illegal date format for -z, --timecond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20630 100 20630 0 0 22442 0 --:--:-- --:--:-- --:--:-- 22423
==> Starting pkgver()...
==> ERROR: pkgver is not allowed to contain colons, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: -> Determining data file's time of last modification...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 20630 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
20151113.024512

Tblue commented on 2015-08-13 19:25

Done, this now uses the newest data file from the author's website.

Tblue commented on 2015-08-10 22:58

Thanks -- nice idea, I will look into implementing this! :-)

djmattyg007 commented on 2015-08-09 14:29

This would be the full command to run in the pkgver() function:
curl -sI http://pages.cs.wisc.edu/~ballard/bofh/excuses | grep '^Last-Modified:' | cut -d ':' -f 2- | date +%s

djmattyg007 commented on 2015-08-09 14:26

Given the Debian package does not appear to include any excuses added after 2009, could I suggest moving away from the Debian package versioning?

My idea would be to perform a HEAD HTTP request to http://pages.cs.wisc.edu/~ballard/bofh/excuses with curl and parse the Last-Modified header into a UNIX timestamp to create the package version in the pkgver() function. This would then more quickly and easily provide updates when the original list itself is updated.

I think to make this work someone would need to take the current contents of the Debian package and set up a fork. The package contains a script to update the list of excuses in the repository (or just download the list fresh), so this would be used in the build() function of the PKGBUILD to actually retrieve the excuses list and turn it into the format that fortune expects.

I'm happy to set this up if you'd like.

ekaljuk commented on 2015-02-01 06:29

To use this command, type "fortune bofh-excuses" at the prompt.

ekaljuk commented on 2015-02-01 06:28

Tblue commented on 2013-08-17 19:05

Release 1.2-2 cleans up the PKGBUILD and makes it work with the current makepkg version.

hollunder commented on 2010-10-26 22:07

Ah, thanks :)

All comments