Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmaports
Commits
5e4d9689
Verified
Commit
5e4d9689
authored
6 months ago
by
Aster Boese
Committed by
Clayton Craft
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
samsung-a6lte: move openrc scripts to subpackage (MR 5688)
parent
1b9c7c89
No related branches found
Branches containing commit
No related tags found
1 merge request
!5688
Move post-install scripts that contain openrc-specific commands to openrc subpackages
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
device/testing/device-samsung-a6lte/APKBUILD
+17
-10
17 additions, 10 deletions
device/testing/device-samsung-a6lte/APKBUILD
device/testing/device-samsung-a6lte/device-samsung-a6lte-downstream-quirks-openrc.post-install
+0
-0
0 additions, 0 deletions
...evice-samsung-a6lte-downstream-quirks-openrc.post-install
with
17 additions
and
10 deletions
device/testing/device-samsung-a6lte/APKBUILD
+
17
−
10
View file @
5e4d9689
# Reference: <https://postmarketos.org/devicepkg>
pkgname
=
device-samsung-a6lte
pkgdesc
=
"Samsung Galaxy A6 2018"
pkgver
=
5
pkgver
=
6
pkgrel
=
0
url
=
"https://postmarketos.org"
license
=
"MIT"
...
...
@@ -20,8 +20,6 @@ replaces="
makedepends
=
"devicepkg-dev"
install
=
"
$pkgname
.post-install"
source
=
"
$pkgname
.post-install
$pkgname
-downstream-quirks.post-install
deviceinfo
etc-conf.d-samsungipcd
etc-init.d-hciattach-ttySAC0
...
...
@@ -37,10 +35,12 @@ source="
usr-share-wireplumber-wireplumber.conf.d-headroom.conf
"
subpackages
=
"
$pkgname
-openrc
$pkgname
-kernel-downstream:kernel_downstream
$pkgname
-kernel-mainline:kernel_mainline
$pkgname
-nonfree-firmware:nonfree_firmware
$pkgname
-downstream-quirks:downstream_quirks
$pkgname
-downstream-quirks-openrc:downstream_quirks_openrc
"
# pulseaudio does not seem to work on this device. Will use pipewire-pulse instead.
...
...
@@ -53,7 +53,6 @@ build() {
package
()
{
devicepkg_package
$startdir
$pkgname
install
-Dm644
etc-conf.d-samsungipcd
"
$pkgdir
"
/etc/conf.d/samsungipcd
install
-Dm755
etc-init.d-wlan0-up
"
$pkgdir
"
/etc/init.d/wlan0-up
install
-Dm644
etc-lightdm-lightdm.conf
"
$pkgdir
"
/etc/lightdm/lightdm.conf
install
-Dm755
usr-libexec-samsungipcd-voicecall.sh
"
$pkgdir
"
/usr/libexec/samsungipcd/voicecall.sh
install
-Dm644
usr-share-alsa-ucm2-conf.d-Universal7870-I-HiFi.conf
"
$pkgdir
"
/usr/share/alsa/ucm2/conf.d/Universal7870-I/HiFi.conf
...
...
@@ -62,6 +61,11 @@ package() {
install
-Dm644
usr-share-wireplumber-wireplumber.conf.d-headroom.conf
"
$pkgdir
"
/usr/share/wireplumber/wireplumber.conf.d/headroom.conf
}
openrc
()
{
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
openrc"
install
-Dm755
etc-init.d-wlan0-up
"
$subpkgdir
"
/etc/init.d/wlan0-up
}
kernel_downstream
()
{
pkgdesc
=
"Working: display, touchscreen, wifi, bluetooth, audio, cellular"
depends
=
"linux-samsung-a6lte msm-fb-refresher pipewire-pulse"
...
...
@@ -86,10 +90,7 @@ downstream_quirks() {
pkgdesc
=
"Hacks to make the downstream kernel work"
depends
=
"bluez-deprecated"
install_if
=
"
$pkgname
-kernel-downstream"
replaces
=
"bootmac udev-init-scripts-openrc"
install
=
"
$subpkgname
.post-install"
install
-Dm755
etc-init.d-udev-settle
"
$subpkgdir
"
/etc/init.d/udev-settle
install
-Dm755
etc-init.d-hciattach-ttySAC0
"
$subpkgdir
"
/etc/init.d/hciattach-ttySAC0
replaces
=
"bootmac"
install
-Dm644
etc-NetworkManager-conf.d-swlan0-unmanaged.conf
"
$pkgdir
"
/etc/NetworkManager/conf.d/swlan0-unmanaged.conf
install
-Dm644
etc-NetworkManager-conf.d-wlan0-preserve-mac.conf
"
$pkgdir
"
/etc/NetworkManager/conf.d/wlan0-preserve-mac.conf
# we run bootmac ourselves and don't want it to trigger from the udev rule
...
...
@@ -97,9 +98,15 @@ downstream_quirks() {
install
-Dm755
/dev/null
"
$subpkgdir
"
/usr/lib/udev/rules.d/90-bootmac.rules
}
downstream_quirks_openrc
()
{
install_if
=
"
$pkgname
-downstream-quirks=
$pkgver
-r
$pkgrel
openrc"
replaces
=
"udev-init-scripts-openrc"
install
=
"
$subpkgname
.post-install"
install
-Dm755
etc-init.d-udev-settle
"
$subpkgdir
"
/etc/init.d/udev-settle
install
-Dm755
etc-init.d-hciattach-ttySAC0
"
$subpkgdir
"
/etc/init.d/hciattach-ttySAC0
}
sha512sums
=
"
e787dd30a667fd886a46bb0b670bd2771a8fc78fddc39bb86405fdda6024bc1211b82f89664b7cfc622adf2968b9cd09b0eb3d2ed607148bf3549dd783e6f752 device-samsung-a6lte.post-install
9c0f939c97582d9c03fb62386527569b7f08dd6c8350c8ac6cf9f70d6d5da61d5fc95997b413c4fdb671379ab35caedb631b9af33c7a1e8f3388b3fb56d9b435 device-samsung-a6lte-downstream-quirks.post-install
95b46ef54f2b92edefcdc3742a1d36b7c52066daeeb5002f25b4de144d52e3cda8e3981c8b44d608dcfaf6ec5a89066d1e53e9c1eccbaf03c262b6c162efe532 deviceinfo
3e5bb764529010d2b6b1f2759a7799f665d140aebcee2dd63433e68cd4282e09b5d3b34fb7c21e737595b406501e7f02ece4592651c60e4c2b9419de4aedb438 etc-conf.d-samsungipcd
f9716fc70bf3508d2f9e83d908f1c13103403f01ebb784acec6cdf3e959e92b63c75e49b0120abe1ada5a50d768dcf30b8472630da1172fc826485e97024d85e etc-init.d-hciattach-ttySAC0
...
...
This diff is collapsed.
Click to expand it.
device/testing/device-samsung-a6lte/device-samsung-a6lte-downstream-quirks.post-install
→
device/testing/device-samsung-a6lte/device-samsung-a6lte-downstream-quirks
-openrc
.post-install
+
0
−
0
View file @
5e4d9689
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment