summaryrefslogtreecommitdiff
path: root/package/sudo
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-27 00:43:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-27 00:43:04 +0100
commitdb40ed98b297d0550c6971b096c87bf0debf59b1 (patch)
tree39bb950b98c4ca6292ce2850cd889c9ca1fd9eb6 /package/sudo
parent45805efcda653a3e6d7577ac2956c8138b49c7fc (diff)
parent83e2707a887a4c495a42f7e59f9f332df6b759ab (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/sudo')
-rw-r--r--package/sudo/Makefile32
-rw-r--r--package/sudo/files/sudo.postinst3
-rw-r--r--package/sudo/files/sudoers3
3 files changed, 38 insertions, 0 deletions
diff --git a/package/sudo/Makefile b/package/sudo/Makefile
new file mode 100644
index 000000000..cdde122fe
--- /dev/null
+++ b/package/sudo/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= sudo
+PKG_VERSION:= 1.7.4p4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 55d9906535d70a1de347cd3d3550ee87
+PKG_DESCR:= su do
+PKG_SECTION:= misc
+PKG_URL:= http://www.courtesan.com/sudo/
+PKG_SITES:= http://www.courtesan.com/sudo/dist/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,SUDO,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIGURE_ARGS+= --without-pam
+
+post-install:
+ $(INSTALL_DIR) $(IDIR_SUDO)/usr/bin
+ $(INSTALL_DIR) $(IDIR_SUDO)/usr/sbin
+ $(INSTALL_DIR) $(IDIR_SUDO)/etc
+ $(INSTALL_DATA) ./files/sudoers $(IDIR_SUDO)/etc
+ chmod 440 $(IDIR_SUDO)/etc/sudoers
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/sudo \
+ $(IDIR_SUDO)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/visudo \
+ $(IDIR_SUDO)/usr/sbin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/sudo/files/sudo.postinst b/package/sudo/files/sudo.postinst
new file mode 100644
index 000000000..300ea80ef
--- /dev/null
+++ b/package/sudo/files/sudo.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+chmod u+s /usr/bin/sudo
diff --git a/package/sudo/files/sudoers b/package/sudo/files/sudoers
new file mode 100644
index 000000000..9e839c9cb
--- /dev/null
+++ b/package/sudo/files/sudoers
@@ -0,0 +1,3 @@
+## sudoers file.
+root ALL=(ALL) ALL
+%root ALL=(ALL) ALL