diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
commit | d87262dd706fec50cd150aab3e93883b6337466d (patch) | |
tree | 246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-misc/datefudge | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/datefudge')
-rw-r--r-- | app-misc/datefudge/Manifest | 4 | ||||
-rw-r--r-- | app-misc/datefudge/datefudge-1.17.ebuild | 35 | ||||
-rw-r--r-- | app-misc/datefudge/files/datefudge-1.17-bsd.patch | 58 | ||||
-rw-r--r-- | app-misc/datefudge/metadata.xml | 4 |
4 files changed, 0 insertions, 101 deletions
diff --git a/app-misc/datefudge/Manifest b/app-misc/datefudge/Manifest deleted file mode 100644 index 7e6d06778afe..000000000000 --- a/app-misc/datefudge/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -AUX datefudge-1.17-bsd.patch 2751 BLAKE2B d6d5bd6048126bb4f95dfba76eb538b555829c16272e846f3c470ee882ab9313b5d5974d29b6e73835278c61c032ba3d6acaf2026e9d3e91c5cac825bc4006c6 SHA512 390ff54428a4ffbdf5cc383aa6229f3ed7be7070d62567a0a04bf169efb6e7fe21c756d34d7865f51523a26204e6014edf936800523723d5f8370997f06dd858 -DIST datefudge_1.17.tar.gz 12606 BLAKE2B 5aef2bab1b434f66bb761dc6858984c4b555aff55f5cf076a6a66af2f17ff7677501ef9a6d9a8aedc7cd531093e7efe59b9146abe250fe2a1fc44e05bbedf313 SHA512 6d335f2c1f42792756d3a81264be0bdf4cde5efab86bec5b62de9ccb2488deaff67e4a4f6c7984fa7a5336156df2d76e366bf486436052d2c5ee5ff88067335e -EBUILD datefudge-1.17.ebuild 972 BLAKE2B de096b081d3d0f8050ae187b7206caed8385c4f024b6254cf7953cef65de367effac0b933d0514446058bd59cbae873cdba4e2c0d46974f3d469dc8719a24a74 SHA512 5490d0eeed9d1c2ac6a1f2aff174f8b5411876983bbcf1e8194f8d882617563d3a2ffac14e5e0b4d4a72727ea0b85b08c5461a90366626f264667fb049e67b86 -MISC metadata.xml 139 BLAKE2B b4a59c22790dfec3fbcfaea41ef363401766736b68a85bedae00e1944d0a848aa97104c2f34244c0fe7b6363029281f965fc1b3545301d341cda371eaa976274 SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be diff --git a/app-misc/datefudge/datefudge-1.17.ebuild b/app-misc/datefudge/datefudge-1.17.ebuild deleted file mode 100644 index d26c1c7f125a..000000000000 --- a/app-misc/datefudge/datefudge-1.17.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 -inherit multilib toolchain-funcs eutils - -DESCRIPTION="A program (and preload library) to fake system date" -HOMEPAGE="https://packages.qa.debian.org/d/datefudge.html" -SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" -IUSE="" - -src_prepare() { - use userland_BSD && epatch "${FILESDIR}"/${P}-bsd.patch - sed -i \ - -e '/dpkg-parsechangelog/d' \ - -e "s:usr/lib:usr/$(get_libdir):" \ - Makefile || die - - if use prefix; then - sed -i -e '/-o root -g root/d' Makefile || die - fi -} - -src_compile() { - emake CC="$(tc-getCC)" VERSION="${PV}" -} - -src_install() { - emake DESTDIR="${ED}" VERSION="${PV}" install - dodoc debian/changelog README -} diff --git a/app-misc/datefudge/files/datefudge-1.17-bsd.patch b/app-misc/datefudge/files/datefudge-1.17-bsd.patch deleted file mode 100644 index 2f2a7dac9be3..000000000000 --- a/app-misc/datefudge/files/datefudge-1.17-bsd.patch +++ /dev/null @@ -1,58 +0,0 @@ -diff --git a/Makefile b/Makefile -index b2f81bb..35da75e 100644 ---- a/Makefile -+++ b/Makefile -@@ -12,17 +12,17 @@ compile all: datefudge datefudge.so - - install: datefudge datefudge.so datefudge.1 - install -d $(DESTDIR)/usr/lib/datefudge/ -- $(INSTALL_PROGRAM) -o root -g root -m 644 datefudge.so $(DESTDIR)/usr/lib/datefudge/datefudge.so -+ $(INSTALL_PROGRAM) -o root -g wheel -m 644 datefudge.so $(DESTDIR)/usr/lib/datefudge/datefudge.so - install -d $(DESTDIR)/usr/bin/ -- $(INSTALL_PROGRAM) -o root -g root -m 755 datefudge $(DESTDIR)/usr/bin -+ $(INSTALL_PROGRAM) -o root -g wheel -m 755 datefudge $(DESTDIR)/usr/bin - install -d $(DESTDIR)/usr/share/man/man1 -- install -o root -g root -m 644 datefudge.1 $(DESTDIR)/usr/share/man/man1 -+ install -o root -g wheel -m 644 datefudge.1 $(DESTDIR)/usr/share/man/man1 - - datefudge: datefudge.sh - sed -e 's,@VERSION@,$(VERSION),g' < $< > $@ - - datefudge.so: datefudge.o -- $(CC) $(LDFLAGS) -o $@ -shared $< -ldl -lc -+ $(CC) $(LDFLAGS) -o $@ -shared $< -lc - - datefudge.o: datefudge.c - $(CC) $(CFLAGS) -c -o $@ $< -@@ -39,8 +39,8 @@ test: compile - export TZ=UTC ;\ - ret1=1; ret2=1 ;\ - for i in 1 2; do \ -- export DATEFUDGE=`LC_ALL=C date --date='yesterday 0:00' +%s` ;\ -- dt=`LC_ALL=C LD_PRELOAD=$(CURDIR)/datefudge.so date --date=12:15 +%F.%T` ;\ -+ export DATEFUDGE=`LC_ALL=C date -v-1d -v0H -v0M +%s` ;\ -+ dt=`LC_ALL=C LD_PRELOAD=$(CURDIR)/datefudge.so date -v12H -v15M +%F.%T` ;\ - exp="1970-01-02.12:15:00" ;\ - [ "$$dt" != "$$exp" ] || { echo "OK"; ret1=0; break; } ;\ - echo "failed: expected: $$exp, actual: $$dt" ;\ -@@ -49,7 +49,7 @@ test: compile - echo -n "Running a simple perl localtime() test... " ;\ - pscr='@t=localtime(time);$$t[5]+=1900;$$t[4]++;printf "%04d-%02d-%02d\n",$$t[5],$$t[4],$$t[3];';\ - for i in 1 2; do \ -- export DATEFUDGE=`LC_ALL=C date --date='yesterday 0:00' +%s` ;\ -+ export DATEFUDGE=`LC_ALL=C date -v-1d -v0H -v0M +%s` ;\ - dt=`LD_PRELOAD=$(CURDIR)/datefudge.so perl -e "$$pscr"` ;\ - exp="1970-01-02" ;\ - [ "$$dt" != "$$exp" ] || { echo "OK"; ret2=0; break; } ;\ -diff --git a/datefudge.c b/datefudge.c -index 8c86652..fc7e3d6 100644 ---- a/datefudge.c -+++ b/datefudge.c -@@ -14,7 +14,6 @@ - #include <stdlib.h> - #include <dlfcn.h> - #include <assert.h> --#include <features.h> - #include <unistd.h> - #include <time.h> - #include <sys/time.h> diff --git a/app-misc/datefudge/metadata.xml b/app-misc/datefudge/metadata.xml deleted file mode 100644 index 097975e3adc2..000000000000 --- a/app-misc/datefudge/metadata.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -</pkgmetadata> |