diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-17 11:52:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-17 11:52:40 +0100 |
commit | 58129875a70f3975f864c0c1e322fe85967688b5 (patch) | |
tree | d670319b7dc1c4fddc3fb798a202d8c1aba3307a /net-misc/netifrc | |
parent | 269581204f3555e3dee67f4ecf29dca64a118e48 (diff) |
gentoo auto-resync : 17:04:2023 - 11:52:40
Diffstat (limited to 'net-misc/netifrc')
-rw-r--r-- | net-misc/netifrc/Manifest | 4 | ||||
-rw-r--r-- | net-misc/netifrc/netifrc-0.7.3-r1.ebuild | 2 | ||||
-rw-r--r-- | net-misc/netifrc/netifrc-0.7.4.ebuild | 74 |
3 files changed, 78 insertions, 2 deletions
diff --git a/net-misc/netifrc/Manifest b/net-misc/netifrc/Manifest index 876d617c7825..3a64e2a74b96 100644 --- a/net-misc/netifrc/Manifest +++ b/net-misc/netifrc/Manifest @@ -1,5 +1,7 @@ DIST netifrc-0.7.3.tar.gz 84770 BLAKE2B 075440bfd81e4dedd406d9555a18f530b07a47f9268130ebcca6d43d35e9cc5f01105a3eb0ddc084a16e17912aa10e378833b1eef1defd2fc6b22f817cd220bd SHA512 a82ac6835c15763becb5845a8c8d90dfd8d6c289ea5e00b0d7ae332d3e7ad6797f0fdcbf27bb9f44ff345c98884cdfa13210c76089585b8dd9970ded5f6236d8 -EBUILD netifrc-0.7.3-r1.ebuild 2076 BLAKE2B 0fc85954fa521ba70fc8aa8ba01a4094ed94089ac23d603fe9da3b055909dcc4fd549fd2ae025236cea4d8cf335941d2e003e8bee2803e56c3f3606ce9e3e07a SHA512 6dc796bba897515647c56dfb6e76a1f0997e9e8a82b4e1ad89dd20e37cdc11565a38a2bac88caba99b22d74f27b4fddebb314f509e01dfde7ee365f723dc27ef +DIST netifrc-0.7.4.tar.bz2 75487 BLAKE2B 3ac3114ee4fb538c620284d02d3c1a0adc905f349ab40e7ff7065a4837113a36824b3962511160d997fc3a85701d55d569d8ac6b6b00c4665281d5b765827f76 SHA512 4934e2b7247a65847eed3a0f982c1c3996c486d7cb1cb401c29d8a6ea36eb94930a64e1cb84ff6ffdfb305e75f369fe6834062fcbb5e1d77d9f336d6592f3dff +EBUILD netifrc-0.7.3-r1.ebuild 2072 BLAKE2B cb870e8d15264a0159abd7bb6454045c80402081ce021de25ec78e76a71bcf136d8d48cdf8308e8c19176e000ceb649fec3c53e13cad0294270e4364149a9815 SHA512 dd35e00d33a06f0159b7cfe71a0f95cbfbddf9d397975400f03384998b35533fee4e1bd36b16be95527b2b12f09e21e6e3eb96803c2f845c8ff65b5c78124063 EBUILD netifrc-0.7.3.ebuild 2059 BLAKE2B 04bce3c3cdf9b43384e6918de8e91b59ee43fa74a23715c409bff93a7861b968225e604d40a412cb20440d0f3afaa53ea750eeded1a4b674074ee2e306da9ed5 SHA512 c907ae80e8b9a4552b2f5129efe0133ea48341584cae701acc3b37f3a172936413a0a6f9bb93e04b98139590230373121a0bd24cdfd5e4a3dddc7e64bd87fe5f +EBUILD netifrc-0.7.4.ebuild 2081 BLAKE2B 0315a743d3dc942ca5d08dfeee66fedc9258d3f93a905873b89c4bbfc526ce845ccde8d958202708b74b01a7feaad4c8545d0ec9bf4ebe6fa31197b5fc434e13 SHA512 ee21e2979005115805e6a04240724af28b9d7ea3bb56839609e3878ef569e395789b14816767e04ac6254baf74d0edb2198c8d81e260eff4333d0694d9330b30 EBUILD netifrc-9999.ebuild 2012 BLAKE2B bb63340644d173eb42992fdde37ed654285465ca1a938478515c052173a584350536d20e3dc038e14c09f40570947f8c1fa880916bba2b2163dc83b07866ce0b SHA512 083befaa94a2bf24c769ed55d74b49387576652d087be062e7a5af6094cf15183344123c94f9944b0acc67384d0c7e21a38b75a021ed98819f397ded0a1d2b76 MISC metadata.xml 590 BLAKE2B c31ae830efc67c90566de9c4b3c4c7edaaea06f4e248295405d73e89e3fa61c925999e6cdfb89d37e1bd484442fe196c966ae256faa03355a31d331340b0f1ce SHA512 c1b6c24f5ee1cafde0e950fcbfa926f35529f991c1eb91436473d4d0ac8d338941b9b18bab62319fce712a3a14d04fd57019e433e584f4f2fc52a3591b8585f6 diff --git a/net-misc/netifrc/netifrc-0.7.3-r1.ebuild b/net-misc/netifrc/netifrc-0.7.3-r1.ebuild index 18a94a9a3dac..7181e1758d64 100644 --- a/net-misc/netifrc/netifrc-0.7.3-r1.ebuild +++ b/net-misc/netifrc/netifrc-0.7.3-r1.ebuild @@ -14,7 +14,7 @@ if [[ ${PV} == "9999" ]]; then inherit git-r3 else SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 sparc x86" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" fi LICENSE="BSD-2" diff --git a/net-misc/netifrc/netifrc-0.7.4.ebuild b/net-misc/netifrc/netifrc-0.7.4.ebuild new file mode 100644 index 000000000000..e67405ca29c9 --- /dev/null +++ b/net-misc/netifrc/netifrc-0.7.4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd udev + +DESCRIPTION="Gentoo Network Interface Management Scripts" +HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/netifrc.git" + #EGIT_REPO_URI="https://github.com/gentoo/${PN}" # Alternate + inherit git-r3 +else + SRC_URI="https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="BSD-2" +SLOT="0" +IUSE="+dhcp" + +RDEPEND="sys-apps/gentoo-functions + >=sys-apps/openrc-0.15 + dhcp? ( || ( net-misc/dhcpcd net-misc/dhcp[client] ) )" +BDEPEND="kernel_linux? ( virtual/pkgconfig )" + +src_prepare() { + if [[ ${PV} == "9999" ]] ; then + local ver="git-${EGIT_VERSION:0:6}" + sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die + einfo "Producing ChangeLog from Git history" + GIT_DIR="${S}/.git" git log >"${S}"/ChangeLog + fi + + default +} + +src_compile() { + MAKE_ARGS=( + PREFIX="${EPREFIX}" + UPREFIX="${EPREFIX}/usr" + UDEVDIR="${EPREFIX}$(get_udevdir)" + LIBEXECDIR="${EPREFIX}/lib/${PN}" + PF="${PF}" + ) + + emake "${MAKE_ARGS[@]}" all +} + +src_install() { + emake "${MAKE_ARGS[@]}" DESTDIR="${D}" install + dodoc README CREDITS FEATURE-REMOVAL-SCHEDULE STYLE TODO + + # Install the service file + local LIBEXECDIR="${EPREFIX}/lib/${PN}" + sed "s:@LIBEXECDIR@:${LIBEXECDIR}:" "${S}/systemd/net_at.service.in" > "${T}/net_at.service" || die + systemd_newunit "${T}/net_at.service" 'net@.service' + + local UNIT_DIR="$(systemd_get_systemunitdir)" + UNIT_DIR="${UNIT_DIR#"${EPREFIX}"}" + dosym net@.service "${UNIT_DIR}/net@lo.service" +} + +pkg_postinst() { + udev_reload + if [[ ! -e "${EROOT}"/etc/conf.d/net && -z ${REPLACING_VERSIONS} ]]; then + elog "The network configuration scripts will use dhcp by" + elog "default to set up your interfaces." + elog "If you need to set up something more complete, see" + elog "${EROOT}/usr/share/doc/${P}/README" + fi +} |