Skip to content

Commit

Permalink
Merge pull request #1381 from mariux64/fix-sudo-1822
Browse files Browse the repository at this point in the history
sudo: fix package
  • Loading branch information
donald authored Oct 3, 2019
2 parents a4b0a74 + c6b99f6 commit 05971c7
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions sudo.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env beesh

# BEE_VERSION sudo-1.8.22-0
# BEE_VERSION sudo-1.8.22-1

SRCURL[0]="https://www.sudo.ws/sudo/dist/sudo-${PKGVERSION}${PKGEXTRAVERSION:+${PKGEXTRAVERSION}}.tar.gz"

Expand All @@ -14,8 +14,6 @@ PATCHURL[0]=""

# build_in_sourcedir



#mee_extract() {
# bee_extract ${@}
#}
Expand All @@ -24,15 +22,28 @@ PATCHURL[0]=""
# bee_patch ${@}
#}

mee_patch_post() {
sed -i \
-e '/ROOT=true/s/true/false/' \
-e '/CHOWNIT=true/s/true/false/' \
-e '/CHGROUPIT=true/s/true/false/' \
install-sh
}

mee_configure() {
bee_configure \
--with-rundir=/run/sudo
--with-rundir=/run/sudo \
--disable-nls \
--disable-shared-libutil \
--enable-static-sudoers
}

#mee_build() {
# bee_build
#}

mee_install_post() {
mv ${D}${SYSCONFDIR}/sudoers{,.sample}
rm -vf ${D}${SYSCONFDIR}/sudoers
rm -vf ${D}${SYSCONFDIR}/sudoers.dist
rm -vrf ${D}/usr/share/doc
}

0 comments on commit 05971c7

Please sign in to comment.