Alad: Thanks, fixed.
Search Criteria
Package Details: fortune-mod-bofh-excuses 20151113.024512-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/fortune-mod-bofh-excuses.git (read-only, click to copy) |
---|---|
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: | 64 |
Popularity: | 0.000721 |
First Submitted: | 2009-04-03 22:26 (UTC) |
Last Updated: | 2017-02-12 16:45 (UTC) |
Dependencies (2)
- fortune-mod (fortune-mod-offAUR)
- curl (curl-quiche-gitAUR, curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR) (make)
Required by (0)
Sources (0)
Tblue commented on 2017-02-12 16:46 (UTC)
Alad commented on 2017-02-09 09:03 (UTC)
-> 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 (UTC)
Done, this now uses the newest data file from the author's website.
Tblue commented on 2015-08-10 22:58 (UTC)
Thanks -- nice idea, I will look into implementing this! :-)
djmattyg007 commented on 2015-08-09 14:29 (UTC)
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 (UTC)
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 (UTC)
To use this command, type "fortune bofh-excuses" at the prompt.
Tblue commented on 2013-08-17 19:05 (UTC)
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 (UTC)
Ah, thanks :)
Pinned Comments
ekaljuk commented on 2015-02-01 06:29 (UTC)