From 0eb1b8501158040ce2821d166a8f301bb9cbe7b8 Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Mon, 26 Mar 2012 02:56:26 -0400 Subject: [PATCH] Initial Release --- debian/README | 6 ++++++ debian/changelog | 7 +++++++ debian/compat | 1 + debian/control | 21 +++++++++++++++++++++ debian/copyright | 1 + debian/docs | 0 debian/hcoop-admin-common-config.install | 3 +++ debian/rules | 21 +++++++++++++++++++++ debian/source/format | 1 + files/login.restrict.hcoop | 3 +++ files/sudoers.d/admins | 3 +++ files/sudoers.d/domtool | 1 + 12 files changed, 68 insertions(+) create mode 100644 debian/README create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/hcoop-admin-common-config.install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 files/login.restrict.hcoop create mode 100644 files/sudoers.d/admins create mode 100644 files/sudoers.d/domtool diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..11e40ff --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package hcoop-admin-common-config +---------------------------- + +Comments regarding the Package + + -- Clinton Ebadi Mon, 26 Mar 2012 02:02:32 -0400 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..222543d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,7 @@ +hcoop-admin-common-config (0) stable; urgency=low + + * Initial Release. + * Install login.restrict and sudoers files for domtool and current admins + + -- Clinton Ebadi Mon, 26 Mar 2012 02:02:32 -0400 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b4b21b6 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: hcoop-admin-common-config +Section: hcoop-config/base +Priority: extra +Maintainer: Clinton Ebadi +Build-Depends: cdbs (>= 0.4.85~), + debhelper (>= 8~), + dh-buildinfo, + config-package-dev (>= 4.5~) +Standards-Version: 3.9.2 +Homepage: http://hcoop.net/ +Vcs-Git: git://git.hcoop.net/git/hcoop/debian/hcoop-admin-common-config.git +Vcs-Browser: http://git.hcoop.net/?p=hcoop/debian/hcoop-admin-common-config.git;a=summary + +Package: hcoop-admin-common-config +Architecture: all +Depends: cdbs, sudo, ${misc:Depends} +Provides: ${diverted-files} +Conflicts: ${diverted-files} +Description: HCoop admin access configuration + Configuration needed from admin users to access nodes and perform + administrative tasks (e.g. sudoers). \ No newline at end of file diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/debian/copyright @@ -0,0 +1 @@ + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/debian/hcoop-admin-common-config.install b/debian/hcoop-admin-common-config.install new file mode 100644 index 0000000..5b36905 --- /dev/null +++ b/debian/hcoop-admin-common-config.install @@ -0,0 +1,3 @@ +files/sudoers.d/admins etc/sudoers.d +files/sudoers.d/domtool etc/sudoers.d +files/login.restrict.hcoop etc \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a71e866 --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_DIVERT_EXTENSION =.hcoop +DEB_DIVERT_FILES_hcoop-admin-common-config += \ + /etc/login.restrict.hcoop + +#DEB_REMOVE_FILES_hcoop-admin-common-config += \ +# /etc/sudoers.d/admins \ +# /etc/sudoers.d/domtool + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/config-package.mk diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/files/login.restrict.hcoop b/files/login.restrict.hcoop new file mode 100644 index 0000000..ea528e8 --- /dev/null +++ b/files/login.restrict.hcoop @@ -0,0 +1,3 @@ +clinton_admin +docelic_admin +rkd_admin diff --git a/files/sudoers.d/admins b/files/sudoers.d/admins new file mode 100644 index 0000000..897081a --- /dev/null +++ b/files/sudoers.d/admins @@ -0,0 +1,3 @@ +User_Alias HCOOPADMINS = clinton_admin, docelic_admin, rkd_admin + +HCOOPADMINS ALL=(ALL) NOPASSWD: ALL \ No newline at end of file diff --git a/files/sudoers.d/domtool b/files/sudoers.d/domtool new file mode 100644 index 0000000..eb5e81b --- /dev/null +++ b/files/sudoers.d/domtool @@ -0,0 +1 @@ +domtool ALL=(ALL) NOPASSWD: /usr/local/sbin/domtool-publish *, /usr/local/sbin/domtool-postgres *, /usr/local/sbin/domtool-mysql *, /afs/hcoop.net/common/etc/scripts/mysql-grant-table-drop -- 2.20.1