Skip to content

Commit

Permalink
user/pmbootstrap: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Sep 26, 2024
1 parent bcd4122 commit 483b0f0
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
39 changes: 39 additions & 0 deletions user/pmbootstrap/patches/bsdutils.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
based on pmbootstrap/375814b9d2f0d08d221093e8f9d82c50d2f234c4 commit but on a version older than 3.0.0

--- a/pmb/chroot/mount.py 2024-05-18 13:34:09.000000000 -0300
+++ b/pmb/chroot/mount.py 2024-09-25 21:48:53.647857439 -0300
@@ -20,13 +20,18 @@
path = chroot + "/dev/" + str(dev[4])
if not os.path.exists(path):
pmb.helpers.run.root(args, ["mknod",
- "-m", str(dev[0]), # permissions
path, # name
str(dev[1]), # type
str(dev[2]), # major
str(dev[3]), # minor
])
-
+ pmb.helpers.run.root(args,
+ [
+ "chmod",
+ str(dev[0]), # perms
+ path, # name
+ ]
+ )
# Verify major and minor numbers of created nodes
for dev in pmb.config.chroot_device_nodes:
path = chroot + "/dev/" + str(dev[4])

--- a/pmb/install/_install.py 2024-05-18 13:34:09.000000000 -0300
+++ a/pmb/install/_install.py 2024-09-25 21:24:49.085716314 -0300
@@ -194,8 +194,8 @@
pmb.helpers.run.root(args, ["cp", f, rootfs + "/var/cache/apk/"])

# Disable pmbootstrap repository
- pmb.helpers.run.root(args, ["sed", "-i", r"/\/mnt\/pmbootstrap\/packages/d",
- rootfs + "/etc/apk/repositories"])
+ pmb.helpers.run.root(args, ["sed", "-i", "", r"/\/mnt\/pmbootstrap\/packages/d",
+ "/mnt/install/etc/apk/repositories"])
pmb.helpers.run.user(args, ["cat", rootfs + "/etc/apk/repositories"])


19 changes: 19 additions & 0 deletions user/pmbootstrap/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pkgname = "pmbootstrap"
pkgver = "2.3.1"
pkgrel = 0
build_style = "python_pep517"
hostmakedepends = [
"python-build",
"python-setuptools",
"python-installer",
]
checkdepends = ["python-pytest"]
depends = ["android-tools"]
pkgdesc = "Chroot/build/flash tool to develop and install postmarketOS"
maintainer = "tulilirockz <[email protected]>"
license = "GPL-3.0-or-later"
url = "https://gitlab.com/postmarketOS/pmbootstrap"
source = f"{url}/-/archive/{pkgver}/pmbootstrap-{pkgver}.tar.gz"
sha256 = "aba09c0a27918dac4b07641339ccf86e6ec0d14d4602056dac44ec49af12c894"
# check: requires networking
options = ["!check"]

0 comments on commit 483b0f0

Please sign in to comment.