aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/boca.conffiles (renamed from debian/conffiles)0
-rw-r--r--debian/control7
-rw-r--r--debian/maratona-submission-tools.postinst5
-rwxr-xr-xdebian/rules6
4 files changed, 18 insertions, 0 deletions
diff --git a/debian/conffiles b/debian/boca.conffiles
index b004c7a..b004c7a 100644
--- a/debian/conffiles
+++ b/debian/boca.conffiles
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 $@