-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rpi4-eeprom-updater-2.3.1.ebuild
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST rpi-eeprom_2.0-1_all.deb 202892 BLAKE2B c18f49f43c788ea911f4db54b1860a6aa9bc47ee0382f01bae85d6528c1660d9e284010c1d3fc97b41e25547b5ef0ef3ad38ba8b5397e3cebc0affc8a02af835 SHA512 c91527f73d90dd891910f9fe2bc07c798c7113cf21351cf56d7634744764faafab7ea52c2d4687c582e301322b6de65e63607d688403b9b6b1de4a77ada8e172 | ||
DIST rpi-eeprom_2.1-1_all.deb 202924 BLAKE2B c1b54a5bb0b18daa47d243938080804f248f1a3e207889c3934538506637e077755730020fc3f1447f1ad5dbdc07107a0f0e2af01c865491e89b573ce72da517 SHA512 9155f489a6472e4aa04be345a09dd99741205d62547298acf8c6806bcf902b553ee97fc4d809f3e140545dbc5b15a67a3cd3a4d54d931ff7225a2c61dda80ed1 | ||
DIST rpi-eeprom_2.2-1_all.deb 203220 BLAKE2B 901f657f2d3373015c10469084ee7a64f06ddcc49a08758ce6b5b5ff0403b4482ffda64e3f6b91aee2b611ba933d7129e6ace24c78ae725dc3999b72bdcf6947 SHA512 3a1c8f5e4b44cf6deaf4c100f9c54579f252c9d013e2b6d6fc8a68c32c3d03cd656d5f9f0a590508a537f35a9c63c737656aebad7e91f7b82f7b275c66d75a9a | ||
DIST rpi-eeprom_2.3-1_all.deb 203420 BLAKE2B 9d22ae2115e1642a21eea569e2e4a809212453d81747e1ea585f356d25e66533ef5a94d08b0c6160190a835ffc0b6bf774c0a5eb7da3e24e53c227365c380188 SHA512 5fbf0da0e5cb0d3d05235363e2c7719f1765c05d3b07517c47e267e8cf5119f3801bea915561fb384703263e151c79b3e95b8e30170d34ea511f7093fd4a84b8 |
53 changes: 53 additions & 0 deletions
53
dev-embedded/rpi4-eeprom-updater/rpi4-eeprom-updater-2.3.1.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright (c) 2019 sakaki <[email protected]> | ||
# License: GPL v3+ | ||
# NO WARRANTY | ||
|
||
EAPI=7 | ||
inherit unpacker | ||
|
||
DESCRIPTION="RPi4 VLI (USB) and bootloader EEPROM updater" | ||
HOMEPAGE="https://github.com/raspberrypi/rpi-eeprom/" | ||
MY_PN="rpi-eeprom" | ||
SRC_URI="http://archive.raspberrypi.org/debian/pool/main/r/rpi-eeprom/${MY_PN}_$(ver_rs 2 '-')_all.deb" | ||
SLOT="0" | ||
LICENCE="BSD rpi-bootloader" | ||
RESTRICT="mirror" | ||
KEYWORDS="~arm ~arm64" | ||
IUSE="" | ||
|
||
DEPEND=" | ||
>=app-shells/bash-4.0" | ||
RDEPEND=" | ||
${DEPEND} | ||
~dev-embedded/rpi4-eeprom-images-${PV} | ||
>=sys-apps/flashrom-1.0 | ||
>=media-libs/raspberrypi-userland-1.20190808" | ||
|
||
QA_PREBUILT="usr/bin/vl805" | ||
QA_PRESTRIPPED="${QA_PREBUILT}" | ||
|
||
S="${WORKDIR}" | ||
|
||
src_unpack() { | ||
unpack_deb "${A}" | ||
cd "${WORKDIR}/usr/share/doc/${MY_PN}" && unpack ./changelog.Debian.gz && rm -f ./changelog.Debian.gz | ||
cd "${WORKDIR}/usr/share/man/man1" && unpack ./*.1.gz && rm -f ./*.1.gz | ||
} | ||
|
||
src_install() { | ||
keepdir /var/lib/raspberrypi/bootloader/backup | ||
dodoc -r usr/share/doc/${MY_PN}/* | ||
doman usr/share/man/man1/*.1 | ||
dobin usr/bin/* | ||
insinto /etc/default | ||
doins etc/default/* | ||
newinitd "${FILESDIR}/init.d_${PN}-1" "${PN}" | ||
} | ||
|
||
pkg_postinst() { | ||
if [[ -z ${REPLACING_VERSIONS} ]]; then | ||
rc-update add "${PN}" default | ||
elog "The ${PN} service has been added to your default runlevel." | ||
elog "Please check /etc/default/rpi-eeprom-update for settings." | ||
fi | ||
} |