From 735e35acabf3dae895a032522a5b81b5f7f18e10 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Tue, 17 Sep 2019 10:41:49 +0200
Subject: [PATCH] net-misc/openrdate: Remove last-rited pkg
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
 net-misc/openrdate/Manifest                   |  1 -
 .../files/openrdate-1.1.3-rename.patch        | 29 ----------------
 net-misc/openrdate/files/openrdate-confd      | 12 -------
 net-misc/openrdate/files/openrdate-initd      | 26 --------------
 net-misc/openrdate/metadata.xml               | 10 ------
 net-misc/openrdate/openrdate-1.2.ebuild       | 34 -------------------
 profiles/package.mask                         |  1 -
 7 files changed, 113 deletions(-)
 delete mode 100644 net-misc/openrdate/Manifest
 delete mode 100644 net-misc/openrdate/files/openrdate-1.1.3-rename.patch
 delete mode 100644 net-misc/openrdate/files/openrdate-confd
 delete mode 100644 net-misc/openrdate/files/openrdate-initd
 delete mode 100644 net-misc/openrdate/metadata.xml
 delete mode 100644 net-misc/openrdate/openrdate-1.2.ebuild

diff --git a/net-misc/openrdate/Manifest b/net-misc/openrdate/Manifest
deleted file mode 100644
index 38dd82a66f7f..000000000000
--- a/net-misc/openrdate/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST openrdate-1.2.tar.gz 118030 BLAKE2B 68e69d45b7ced7f38abb431d45f6d37e18b5fa5acdabc9d8539b16738eef3acabe121a1c369cf6ab3869673b991809d6e911c00efbd426b6572cf643f7b8b9b1 SHA512 5469352c26883863442641b47cc76512590af1524ecaa51fb829ae027d413889626b5b8098de0bea177a3c0ac411986518380e9400f20ddd3d4ac0bffb042e11
diff --git a/net-misc/openrdate/files/openrdate-1.1.3-rename.patch b/net-misc/openrdate/files/openrdate-1.1.3-rename.patch
deleted file mode 100644
index 5f4774c3be4e..000000000000
--- a/net-misc/openrdate/files/openrdate-1.1.3-rename.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-Name the binary 'openrdate' as so not to conflict with the pre-existing ancient
-rdate.
-
-Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-
-diff -Nuar openrdate-1.1.3.orig/Makefile.am openrdate-1.1.3/Makefile.am
---- openrdate-1.1.3.orig/Makefile.am	2007-11-10 21:15:31.000000000 -0800
-+++ openrdate-1.1.3/Makefile.am	2008-06-18 14:27:40.001963783 -0700
-@@ -1,15 +1,15 @@
- SUBDIRS = src
- 
--bin_PROGRAMS = rdate
-+bin_PROGRAMS = openrdate
- 
--rdate_SOURCES= \
-+openrdate_SOURCES= \
-         src/rdate.c
- 
--rdate_LDADD= \
-+openrdate_LDADD= \
-         src/librdate.a
- 
- man_MANS= \
--    docs/rdate.8
-+    docs/openrdate.8
- 
- EXTRA_DIST= \
--    docs/rdate.8
-+    $(man_MANS)
diff --git a/net-misc/openrdate/files/openrdate-confd b/net-misc/openrdate/files/openrdate-confd
deleted file mode 100644
index fb4ee4caa746..000000000000
--- a/net-misc/openrdate/files/openrdate-confd
+++ /dev/null
@@ -1,12 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# the NTP or RFC868/time server to get the date from
-RDATE_SERVER="pool.ntp.org"
-
-# Options to pass to rdate
-# "-s" is mandatory to set the system time, and 
-# is passed regardless of this variable.
-# "-n" says that we are using an NTP server instead of a RFC868/time server.
-# "-c" is for leap seconds, which is needed on NTP servers.
-OPENRDATE_OPTS="-n -c"
diff --git a/net-misc/openrdate/files/openrdate-initd b/net-misc/openrdate/files/openrdate-initd
deleted file mode 100644
index 92210cce3c89..000000000000
--- a/net-misc/openrdate/files/openrdate-initd
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
-	before cron
-	need net
-	use dns
-}
-
-checkconfig() {
-	if [ -z "${RDATE_SERVER}" ] ; then
-		eerror "Please edit /etc/conf.d/openrdate"
-		eerror "I need to know what server to use!"
-		return 1
-	fi
-	return 0
-}
-
-start() {
-	checkconfig || return $?
-
-	ebegin "Setting clock via openrdate"
-	/usr/bin/openrdate -s ${OPENRDATE_OPTS} ${RDATE_SERVER} > /dev/null
-	eend $? "Failed to set clock via openrdate"
-}
diff --git a/net-misc/openrdate/metadata.xml b/net-misc/openrdate/metadata.xml
deleted file mode 100644
index bbbc68551751..000000000000
--- a/net-misc/openrdate/metadata.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-  <maintainer type="person">
-    <email>robbat2@gentoo.org</email>
-  </maintainer>
-  <upstream>
-    <remote-id type="sourceforge">openrdate</remote-id>
-  </upstream>
-</pkgmetadata>
diff --git a/net-misc/openrdate/openrdate-1.2.ebuild b/net-misc/openrdate/openrdate-1.2.ebuild
deleted file mode 100644
index 48c8d01f24a5..000000000000
--- a/net-misc/openrdate/openrdate-1.2.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-WANT_AUTOMAKE=1.9
-
-inherit autotools eutils
-
-DESCRIPTION="use TCP or UDP to retrieve the current time of another machine"
-HOMEPAGE="https://sourceforge.net/projects/openrdate/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-src_unpack() {
-	unpack ${A}
-	cd "${S}"
-	epatch "${FILESDIR}"/${PN}-1.1.3-rename.patch
-	eautomake
-	mv docs/{,open}rdate.8
-}
-
-src_install(){
-	emake -j1 DESTDIR="${D}" install || die "make install failed"
-	newinitd "${FILESDIR}"/openrdate-initd openrdate
-	newconfd "${FILESDIR}"/openrdate-confd openrdate
-}
diff --git a/profiles/package.mask b/profiles/package.mask
index 1d5c78b93553..db794af847a6 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -1142,7 +1142,6 @@ sys-kernel/bliss-initramfs
 # Removal in 30 days
 media-gfx/pixie
 net-irc/eiwic
-net-misc/openrdate
 
 # Mike Gilbert <floppym@gentoo.org> (2019-08-13)
 # Dev channel releases are only for people who
-- 
2.26.2