summaryrefslogtreecommitdiff
path: root/app-backup/hdup
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-12-30 01:11:30 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-12-30 01:11:30 +0000
commit76dfef0cec9170000357d2f354e412daf48941fc (patch)
tree56647120c0ee20ab3494475c86722034cd194b02 /app-backup/hdup
parentccf84bcd604130256d1377cd58f0a634ae6ee20f (diff)
gentoo resync : 30.12.2017
Diffstat (limited to 'app-backup/hdup')
-rw-r--r--app-backup/hdup/Manifest3
-rw-r--r--app-backup/hdup/files/hdup-2.0.14-fix-build-system.patch53
-rw-r--r--app-backup/hdup/hdup-2.0.14.ebuild66
3 files changed, 81 insertions, 41 deletions
diff --git a/app-backup/hdup/Manifest b/app-backup/hdup/Manifest
index dd5c0e6a40be..394a7607c986 100644
--- a/app-backup/hdup/Manifest
+++ b/app-backup/hdup/Manifest
@@ -1,3 +1,4 @@
+AUX hdup-2.0.14-fix-build-system.patch 1237 BLAKE2B 491b4138e237bf90d6fee8165e28c4281a2be9b76d790b8d531f7327b01f7c49ed228b851745a14a22f690e6b51de10348f1ef791c8094187f174129c2da1f19 SHA512 5caaec6fc990249a1198a05d50bdf18af9bb82a66dd9dac763f1414b908a183d7e78fc7bed4c779da6e9afd6a894daf9c04975188848c4d604fd5ff39a2344b2
DIST hdup-2.0.14.tar.bz2 87803 BLAKE2B 28e65596e4a278f3895986ef97f5557b875adb4bab5e22bae96d58caf64526e63fc2207fc920b59c915b35133f2c66d9280dfd44e5c81b01e87842ee1d19e86f SHA512 076876345d58bc6a1b987adc3ea10b1e82652504f52579d62c3f9f97c120fd56f3177deb4fe810b1579ab473061d2ab38b0ab97b83427ec84d5141f7043897f8
-EBUILD hdup-2.0.14.ebuild 1288 BLAKE2B 184221bc55496f31a3fe8ebd7e9dc590a29ef6bb1f29ae12e31d45158c254c493f5baa6d4ff3a0d5337a1030747c0063e69fef9ff4641a489c173565e478d498 SHA512 b3f3cedac1b47ddb1722f67069f5b802ac104928e9b38741e68b4edebaeb013fe516effdccb0e96042865bb0da5ad399ab38eff83863bdcd225150d928cf3689
+EBUILD hdup-2.0.14.ebuild 966 BLAKE2B eef84b761bdc418e7c1496a7d905033ebb3548c56aab8fb6300f381ea94eb4d63cc4ef02581bac9d2ca907dcc737096ce1a85f53a86641af7816b910af55efdb SHA512 95ef811d17e7d6f9a62124863a6817505f19e55b5d6973500162557f1605376b565d28e3b95edc8f3136d5d8e580de7e982ca6b00df051ed79b98b692a3b2cd9
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
diff --git a/app-backup/hdup/files/hdup-2.0.14-fix-build-system.patch b/app-backup/hdup/files/hdup-2.0.14-fix-build-system.patch
new file mode 100644
index 000000000000..75ed0254c4ed
--- /dev/null
+++ b/app-backup/hdup/files/hdup-2.0.14-fix-build-system.patch
@@ -0,0 +1,53 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -11,7 +11,7 @@
+
+ hdup:
+ @echo hdup version: ${VERSION}
+- @(cd src ; $(MAKE) all)
++ $(MAKE) -C src all
+
+ clean: tarclean docclean
+ @rm -f Makefile
+@@ -32,7 +32,7 @@
+ @echo "done"
+
+ uninstall:
+- @(cd src ; make uninstall )
++ $(MAKE) -C src uninstall
+
+ install:
+- @(cd src ; make install )
++ $(MAKE) -C src install
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -11,9 +11,9 @@
+ sysconfdir = @sysconfdir@
+ hdup_config = $(sysconfdir)/hdup/hdup.conf
+
+-GCC = @CC@
++CC = @CC@
+ GLIB_CFLAGS = @GLIB_CFLAGS@
+-GLIB_LIBS = @GLIB_LIBS@
++LDLIBS = @GLIB_LIBS@
+ CFLAGS =-Wall @CFLAGS@ @DEFS@ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -Wpointer-arith -Wstrict-prototypes -DETCFILE=\"$(hdup_config)\"
+ INSTALL = ../install-sh -c
+ INSTALL_PROG = $(INSTALL)
+@@ -22,14 +22,12 @@
+ ######################################
+ ######################################
+ .PHONY: clean install all uninstall
+-%.o: %.c ${HDR}
+- ${GCC} ${CFLAGS} ${GLIB_CFLAGS} -c $<
++.c.o:
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(GLIB_CFLAGS) -c $< -o $@
+
+ all: hdup Makefile.in
+
+-hdup: ${OBJ} ${HDR} Makefile.in
+- ${GCC} ${GLIB_LIBS} ${OBJ} -o hdup
+- ${STRIP}
++hdup: $(OBJ)
+
+ hdup.h: hdup.h.in Makefile.in
+ @(cd .. ; ./configure)
diff --git a/app-backup/hdup/hdup-2.0.14.ebuild b/app-backup/hdup/hdup-2.0.14.ebuild
index 296408761b4c..87d941b00336 100644
--- a/app-backup/hdup/hdup-2.0.14.ebuild
+++ b/app-backup/hdup/hdup-2.0.14.ebuild
@@ -1,55 +1,41 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-KEYWORDS="~amd64 ~ppc ~x86"
+EAPI=6
+
DESCRIPTION="Hdup is backup program using tar, find, gzip/bzip2, mcrypt and ssh"
HOMEPAGE="http://www.miek.nl/projects/hdup2/index.html"
SRC_URI="http://www.miek.nl/projects/${PN}2/${P}.tar.bz2"
+
LICENSE="GPL-2"
SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
IUSE="crypt"
-CDEPEND="app-arch/bzip2
- app-arch/gzip
- app-arch/tar
- >=dev-libs/glib-2.0"
-
-RDEPEND="${CDEPEND}
- net-misc/openssh
- sys-apps/coreutils
- sys-apps/findutils
- crypt? ( app-crypt/mcrypt )"
-
-DEPEND="${CDEPEND}
- virtual/pkgconfig"
-
-src_unpack() {
- unpack ${A}
-
- sed -i \
- -e '/hdup:/s|${HDR}.*||' \
- -e 's:GLIB_LIBS *=:LDLIBS =:' \
- -e '/-o hdup/,+1d' \
- "${S}"/src/Makefile.in || die "Makefile fix failed"
-}
-
-src_compile() {
- econf || die "econf failed"
- emake || die "emake failed"
-}
+CDEPEND="
+ app-arch/bzip2
+ app-arch/gzip
+ app-arch/tar
+ >=dev-libs/glib-2.0"
+RDEPEND="
+ ${CDEPEND}
+ net-misc/openssh
+ sys-apps/coreutils
+ sys-apps/findutils
+ crypt? ( app-crypt/mcrypt )"
+DEPEND="
+ ${CDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.0.14-fix-build-system.patch )
src_install() {
- dodir /usr/sbin
- make DESTDIR="${D}" install || die "make install failed"
-
- dohtml doc/FAQ.html
- dodoc ChangeLog Credits README
-
- insinto /usr/share/${PN}/contrib/
- doins contrib/*
+ HTML_DOCS=( doc/FAQ.html )
+ default
+ dodoc Credits
- insinto /usr/share/${PN}/examples/
- doins examples/*
+ insinto /usr/share/${PN}
+ doins -r contrib examples
}
pkg_postinst() {