From c4bad38caa59159a254133d4c01de4e59f4a0680 Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Fri, 4 Nov 2016 18:35:47 -0200 Subject: Separeted BOCA in two packages: BOCA and BOCA-SUBMISSION-TOOLS boca will continue to provide all boca server utilities boca-submission-tools provides submission tools to users Signed-off-by: Bruno Ribas --- debian/boca.conffiles | 1 + debian/conffiles | 1 - debian/control | 7 +++++++ debian/maratona-submission-tools.postinst | 5 +++++ debian/rules | 6 ++++++ 5 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 debian/boca.conffiles delete mode 100644 debian/conffiles create mode 100644 debian/maratona-submission-tools.postinst diff --git a/debian/boca.conffiles b/debian/boca.conffiles new file mode 100644 index 0000000..b004c7a --- /dev/null +++ b/debian/boca.conffiles @@ -0,0 +1 @@ +/var/www/boca/src/private/conf.php diff --git a/debian/conffiles b/debian/conffiles deleted file mode 100644 index b004c7a..0000000 --- a/debian/conffiles +++ /dev/null @@ -1 +0,0 @@ -/var/www/boca/src/private/conf.php diff --git a/debian/control b/debian/control index 60c055c..904082f 100644 --- a/debian/control +++ b/debian/control @@ -11,3 +11,10 @@ Description: BOCA is a software created to control a contest with the ACM ICPC r BOCA is a software created to control a contest with the ACM International Collegiate Programming Contest rules. It has been developed in PHP and the interaction between judges and the system is done through a web browser. + +Package: boca-submission-tools +Architecture: amd64 +Depends: sharutils, wget, coreutils +Description: BOCA submission tools. + This package provides tools to submit codes to a running boca server + without using the web interface. diff --git a/debian/maratona-submission-tools.postinst b/debian/maratona-submission-tools.postinst new file mode 100644 index 0000000..99505c8 --- /dev/null +++ b/debian/maratona-submission-tools.postinst @@ -0,0 +1,5 @@ +#!/bin/bash + +#Make sure wrapper is suid +chmod 4555 /usr/bin/boca-submit-run-root-wrapper + diff --git a/debian/rules b/debian/rules index a5e0d78..6c52a63 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,10 @@ #! /usr/bin/make -f +override_dh_auto_install: + mkdir -p debian/boca-submission-tools + make -j1 install-submission-tools DESTDIR=debian/boca-submission-tools + mkdir -p debian/boca + make -j1 install DESTDIR=debian/boca + %: dh $@ -- cgit v1.2.3