From 55f07812e4c6cb72f5c3918f79d7beba5d8cf9f1 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 8 Feb 2018 09:04:46 +0100 Subject: [PATCH 1/4] cronolog: Convert to current template --- cronolog-1.6.2-0.bee | 64 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 57 insertions(+), 7 deletions(-) diff --git a/cronolog-1.6.2-0.bee b/cronolog-1.6.2-0.bee index b7ab3afc0..b0d603611 100755 --- a/cronolog-1.6.2-0.bee +++ b/cronolog-1.6.2-0.bee @@ -1,27 +1,58 @@ #!/usr/bin/env beesh +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + SRCURL[0]="http://cronolog.org/download/cronolog-${PKGVERSION}.tar.gz" -PATCHURL[0]="" +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. -# BEE_CONFIGURE=compat +# EXCLUDE+=() -# BEE_BUILDTYPE= +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. -# EXCLUDE="" +# build_in_sourcedir +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. +# sourcesubdir_append src + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" #mee_extract() { -# bee_extract ${@} +# bee_extract "${@}" #} #mee_patch() { -# bee_patch ${@} +# bee_patch "${@}" #} #mee_configure() { -# bee_configure +# bee_configure #} #mee_build() { @@ -31,3 +62,22 @@ PATCHURL[0]="" #mee_install() { # bee_install #} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[0] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From bfbcabb3dc5ce34af0293420dcf504764d1abc11 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 8 Feb 2018 09:06:29 +0100 Subject: [PATCH 2/4] cronolog: Convert to versionless bee file --- cronolog-1.6.2-0.bee => cronolog.be0 | 2 ++ 1 file changed, 2 insertions(+) rename cronolog-1.6.2-0.bee => cronolog.be0 (98%) diff --git a/cronolog-1.6.2-0.bee b/cronolog.be0 similarity index 98% rename from cronolog-1.6.2-0.bee rename to cronolog.be0 index b0d603611..7396e1e99 100755 --- a/cronolog-1.6.2-0.bee +++ b/cronolog.be0 @@ -1,5 +1,7 @@ #!/usr/bin/env beesh +# BEE_VERSION cronolog-1.6.2-0 + ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) From af4b6e8eef631e8fc7c337862bb8021b9266d39f Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 8 Feb 2018 09:16:17 +0100 Subject: [PATCH 3/4] cronolog: Update download URL The cronolog.org website seems to be dead. The project seems to have moved to https://github.com/fordmason/cronolog but it is rather unmaintained there also. Use commit 8ea64c08afe54878ef3ce8489f9b1f6592515e59 ("added version 1.6.2 from 2001-05-04") for version 1.6.2. Version 1.6.3 from 83f9e99d6bd5cb8f5cc06723f4d79d1265582340 ("added version 1.6.3 from 2004-02-07") does not seem to be functional: scratch/local/bee-buczek/cronolog/cronolog-1.6.3-0/source/configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man --exec-prefix=/usr configure: error: cannot find sources (bootstrap) in /scratch/local/bee-buczek/cronolog/cronolog-1.6.3-0/source or .. --- cronolog.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cronolog.be0 b/cronolog.be0 index 7396e1e99..ee766b385 100755 --- a/cronolog.be0 +++ b/cronolog.be0 @@ -9,7 +9,7 @@ ## The source URL(s) define the location of the sources that will be ## downloaded. Version variables may be used to simplify reuse of this bee-file. -SRCURL[0]="http://cronolog.org/download/cronolog-${PKGVERSION}.tar.gz" +SRCURL[0]="https://api.github.com/repos/fordmason/cronolog/tarball/8ea64c08afe54878ef3ce8489f9b1f6592515e59 cronolog-1.6.2.tar.gz" ############################################################################### ## Add URLs/pathes to patch files to the PATCHURL array. From 6bf0fa2fefbfa647409661c263ef6997148b2a3e Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 8 Feb 2018 10:10:27 +0100 Subject: [PATCH 4/4] cronolog: Rebuild with -DCHECK_ALL_PREFIX_DIRS Without this option, cronolog creates all required directory components for the logfile only once, but doesn't recreate them as needed when a new logfile is created in the same directory path as before. The directory is "known to exist". However, if the directory is removed by a third party, like a stupid system administrator, cronolog just terminates when trying to open the next logfile. Add -DCHECK_ALL_PREFIX_DIRS to change that behaviour. With CHECK_ALL_PREFIX_DIRS, all directories are created as needed whenever a new logfile is created. --- cronolog.be0 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cronolog.be0 b/cronolog.be0 index ee766b385..b7f9c5a7e 100755 --- a/cronolog.be0 +++ b/cronolog.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION cronolog-1.6.2-0 +# BEE_VERSION cronolog-1.6.2-1 ## this file was created by bee init and should be executed to build a ## bee-package. (Additional hints are located at the end of this file.) @@ -53,9 +53,9 @@ SRCURL[0]="https://api.github.com/repos/fordmason/cronolog/tarball/8ea64c08afe54 # bee_patch "${@}" #} -#mee_configure() { -# bee_configure -#} +mee_configure() { + CFLAGS="-DCHECK_ALL_PREFIX_DIRS" bee_configure +} #mee_build() { # bee_build