Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/openrsync/files/, net-misc/openrsync/
Date: Sat, 27 Aug 2022 23:10:29
Message-Id: 1661575121.44fb159ff248f157e6808603edeae25719310751.sam@gentoo
1 commit: 44fb159ff248f157e6808603edeae25719310751
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 27 04:38:26 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 27 04:38:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44fb159f
7
8 net-misc/openrsync: new package, add 0.5.0_p20220508
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/openrsync/Manifest | 1 +
13 ...ync-0.5.0_p20220508-extern-stdint-include.patch | 11 ++++++
14 net-misc/openrsync/metadata.xml | 11 ++++++
15 .../openrsync/openrsync-0.5.0_p20220508.ebuild | 40 ++++++++++++++++++++++
16 4 files changed, 63 insertions(+)
17
18 diff --git a/net-misc/openrsync/Manifest b/net-misc/openrsync/Manifest
19 new file mode 100644
20 index 000000000000..bd57e5fd9ecd
21 --- /dev/null
22 +++ b/net-misc/openrsync/Manifest
23 @@ -0,0 +1 @@
24 +DIST openrsync-0.5.0_p20220508.tar.gz 139218 BLAKE2B 2ff7614a10095d01ac46f92281d8e22dd8bd03c943324d4f5eff0f3cd981a5e97a8ce8ee361f8dbd144229c39d29ad33035a704c7e0e753d66eb72ec65c92bed SHA512 f2fec287d57502e3b478652a7c91c38e295221f936eb089f8ecd9efd69e51e0b9896e6f9d5457195db8d4661faf461c34d2d1547373ba5ddae22a5f7135677e9
25
26 diff --git a/net-misc/openrsync/files/openrsync-0.5.0_p20220508-extern-stdint-include.patch b/net-misc/openrsync/files/openrsync-0.5.0_p20220508-extern-stdint-include.patch
27 new file mode 100644
28 index 000000000000..ea2af659fad2
29 --- /dev/null
30 +++ b/net-misc/openrsync/files/openrsync-0.5.0_p20220508-extern-stdint-include.patch
31 @@ -0,0 +1,11 @@
32 +--- a/extern.h
33 ++++ b/extern.h
34 +@@ -17,6 +17,8 @@
35 + #ifndef EXTERN_H
36 + #define EXTERN_H
37 +
38 ++#include <stdint.h>
39 ++
40 + #if !HAVE_PLEDGE
41 + # define pledge(x, y) (1)
42 + #endif
43
44 diff --git a/net-misc/openrsync/metadata.xml b/net-misc/openrsync/metadata.xml
45 new file mode 100644
46 index 000000000000..93a67ab8e286
47 --- /dev/null
48 +++ b/net-misc/openrsync/metadata.xml
49 @@ -0,0 +1,11 @@
50 +<?xml version="1.0" encoding="UTF-8"?>
51 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
52 +<pkgmetadata>
53 + <maintainer type="person">
54 + <email>sam@g.o</email>
55 + <name>Sam James</name>
56 + </maintainer>
57 + <upstream>
58 + <remote-id type="github">kristapsdz/openrsync</remote-id>
59 + </upstream>
60 +</pkgmetadata>
61
62 diff --git a/net-misc/openrsync/openrsync-0.5.0_p20220508.ebuild b/net-misc/openrsync/openrsync-0.5.0_p20220508.ebuild
63 new file mode 100644
64 index 000000000000..bfbf341c0781
65 --- /dev/null
66 +++ b/net-misc/openrsync/openrsync-0.5.0_p20220508.ebuild
67 @@ -0,0 +1,40 @@
68 +# Copyright 2022 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=8
72 +
73 +inherit edo toolchain-funcs
74 +
75 +DESCRIPTION="BSD-licensed implementation of rsync"
76 +HOMEPAGE="https://www.openrsync.org/"
77 +
78 +if [[ ${PV} == *_p* ]] ; then
79 + MY_COMMIT="f50d0f8204ea18306a0c29c6ae850292ea826995"
80 + SRC_URI="https://github.com/kristapsdz/openrsync/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
81 + S="${WORKDIR}"/${PN}-${MY_COMMIT}
82 +else
83 + SRC_URI="https://github.com/kristapsdz/openrsync/archive/refs/tags/VERSION_$(ver_rs 3 _).tar.gz -> ${P}.tar.gz"
84 +fi
85 +
86 +LICENSE="ISC"
87 +SLOT="0"
88 +KEYWORDS="~amd64"
89 +
90 +PATCHES=(
91 + "${FILESDIR}"/${PN}-0.5.0_p20220508-extern-stdint-include.patch
92 +)
93 +
94 +src_configure() {
95 + tc-export CC
96 +
97 + local confargs=(
98 + PREFIX="${EPREFIX}"/usr
99 + MANDIR="${EPREFIX}"/usr/share/man
100 + )
101 +
102 + edo ./configure "${confargs[@]}"
103 +}
104 +
105 +src_compile() {
106 + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
107 +}