wok-current rev 25636
Add miss patch for apache-mod-perl, fake-hwclock
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jan 15 18:52:49 2024 +0000 (10 months ago) |
parents | 9bae630bd269 |
children | adb82ce06cee |
files | apache-mod-perl/stuff/perl-5.34.0.patch fake-hwclock/receipt fake-hwclock/stuff/fake-hwclock fake-hwclock/stuff/fake-hwclock.data |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/apache-mod-perl/stuff/perl-5.34.0.patch Mon Jan 15 18:52:49 2024 +0000 1.3 @@ -0,0 +1,11 @@ 1.4 +--- a/src/modules/perl/modperl_perl.c 1.5 ++++ b/src/modules/perl/modperl_perl.c 1.6 +@@ -268,7 +268,7 @@ 1.7 + #ifdef MP_NEED_HASH_SEED_FIXUP 1.8 + if (MP_init_hash_seed_set) { 1.9 + #if MP_PERL_VERSION_AT_LEAST(5, 17, 6) 1.10 +- memcpy(&PL_hash_seed, &MP_init_hash_seed, 1.11 ++ memcpy(PL_hash_seed, &MP_init_hash_seed, 1.12 + sizeof(PL_hash_seed) > sizeof(MP_init_hash_seed) ? 1.13 + sizeof(MP_init_hash_seed) : sizeof(PL_hash_seed)); 1.14 + PL_hash_seed_set = MP_init_hash_seed_set;
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/fake-hwclock/receipt Mon Jan 15 18:52:49 2024 +0000 2.3 @@ -0,0 +1,31 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="fake-hwclock" 2.7 +VERSION="0.13" 2.8 +CATEGORY="network" 2.9 +TAGS="clock" 2.10 +SHORT_DESC="Save/restore system clock on machines without working RTC hardware." 2.11 +MAINTAINER="maintainer@slitaz.org" 2.12 +LICENSE="GPL" 2.13 +WEB_SITE="https://git.einval.com/cgi-bin/gitweb.cgi?p=fake-hwclock.git" 2.14 + 2.15 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.16 +WGET_URL="git|https://git.einval.com/git/fake-hwclock.git" 2.17 +BRANCH="75363d85aac2423fbd15c61f3729e63fea4019df" 2.18 + 2.19 +BUILD_DEPENDS="git" 2.20 + 2.21 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.22 +genpkg_rules() 2.23 +{ 2.24 + mkdir -p $fs/usr/sbin $fs/etc/init.d 2.25 + cp $src/fake-hwclock $fs/usr/sbin 2.26 + cp $stuff/fake-hwclock $fs/etc/init.d 2.27 + cp $stuff/fake-hwclock.data $fs/etc 2.28 +} 2.29 + 2.30 +post_install() 2.31 +{ 2.32 + # Ensure we have start point 2.33 + echo $(date '+%Y-%m-%d %H:%M:%S') > /etc/fake-hwclock.data 2.34 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/fake-hwclock/stuff/fake-hwclock Mon Jan 15 18:52:49 2024 +0000 3.3 @@ -0,0 +1,30 @@ 3.4 +#!/bin/sh 3.5 +# /etc/init.d/fake-hwclock: Manage time on system without RTC on SliTaz, 3.6 +# at boot time or with the command line. Daemons options are configured 3.7 +# with /etc/daemons.conf 3.8 +# 3.9 +. /etc/init.d/rc.functions 3.10 +. /etc/daemons.conf 3.11 + 3.12 +NAME=fake-hwclock 3.13 +DAEMON=/usr/sbin/fake-hwclock 3.14 + 3.15 +case "$1" in 3.16 + start) 3.17 + action 'Restore time from file: %s...' $NAME 3.18 + $DAEMON load 3.19 + status 3.20 + ;; 3.21 + stop) 3.22 + action 'Save time in file for next boot: %s...' $NAME 3.23 + $DAEMON save 3.24 + status 3.25 + ;; 3.26 + *) 3.27 + emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop]" 3.28 + newline 3.29 + exit 1 3.30 + ;; 3.31 +esac 3.32 + 3.33 +exit 0