Skip to content

Commit a67d335

Browse files
b-chmielMichcioperz
andcommitted
Debian packaging with a small fix.
Co-authored-by: Michał Sidor <[email protected]>
1 parent 61a6131 commit a67d335

11 files changed

+63
-5
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ pin.log
2121
.idea
2222
.cache
2323
__pycache__
24+
25+
debian/.debhelper/
26+
debian/debhelper-build-stamp
27+
debian/files
28+
debian/*.substvars
29+
debian/sio2jail/
30+
obj-*/

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ENDIF()
1313
IF(NOT DEFINED ARCH)
1414
SET(ARCH "NATIVE")
1515
ENDIF()
16-
IF(NOT ARCH MATCHES "i386|x86_64|NATIVE")
17-
MESSAGE(FATAL_ERROR "ARCH should be one of i386, x86_64, NATIVE")
16+
IF(NOT ARCH MATCHES "i386|x86_64|amd64|NATIVE")
17+
MESSAGE(FATAL_ERROR "ARCH should be one of i386, amd64, NATIVE")
1818
ENDIF()
1919

2020
IF(NOT DEFINED WITH_CLANG_TIDY)
@@ -43,7 +43,7 @@ ENDIF()
4343
IF(ARCH STREQUAL "i386")
4444
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
4545
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
46-
ELSEIF(ARCH STREQUAL "x86_64")
46+
ELSEIF(ARCH MATCHES "amd64|x86_64")
4747
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64")
4848
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
4949
ENDIF()

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ option (STATIC by default):
5555
There is also a possibility to control whether output binary should run on other
5656
architecture than the default one (or force given architecture):
5757

58-
-DARCH=i386|x86_64
58+
-DARCH=i386|amd64
5959

6060
Note, that when using ARCH other than build host architecture it may be necessary
6161
(depending on libraries installation) to build sio2jail with custom libseccomp (more

debian/README

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md

debian/changelog

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sio2jail (1.3.1) UNRELEASED; urgency=medium
2+
3+
* Initial Release.
4+
5+
-- Michał Sidor <[email protected]> Sun, 12 Jan 2020 15:24:25 +0100

debian/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11

debian/control

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Source: sio2jail
2+
Section: utils
3+
Priority: optional
4+
Maintainer: Michał Sidor <[email protected]>
5+
Build-Depends: debhelper (>= 11), cmake
6+
Standards-Version: 4.1.3
7+
Homepage: https://github.com/sio2project/sio2jail
8+
Vcs-Browser: https://github.com/sio2project/sio2jail
9+
Vcs-Git: https://github.com/sio2project/sio2jail.git
10+
11+
Package: sio2jail
12+
Architecture: any
13+
Depends: ${shlibs:Depends}, ${misc:Depends}
14+
Description: A tool for supervising execution of programs submitted in algorithmic competitions

debian/rules

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/make -f
2+
# See debhelper(7) (uncomment to enable)
3+
# output every command that modifies files on the build system.
4+
#export DH_VERBOSE = 1
5+
6+
7+
# see FEATURE AREAS in dpkg-buildflags(1)
8+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9+
10+
# see ENVIRONMENT in dpkg-buildflags(1)
11+
# package maintainers to append CFLAGS
12+
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
13+
# package maintainers to append LDFLAGS
14+
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
15+
16+
17+
%:
18+
dh $@ --buildsystem=cmake
19+
20+
21+
# dh_make generated override targets
22+
# This is example for Cmake (See https://bugs.debian.org/641051 )
23+
override_dh_auto_configure:
24+
dh_auto_configure -- -DCMAKE_BUILD_TYPE=Release -DARCH=$(DEB_TARGET_ARCH)
25+
26+
override_dh_auto_test:
27+
echo Tests skipped
28+

debian/sio2jail-docs.docs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README

debian/source/format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

doc/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ ADD_CUSTOM_COMMAND(OUTPUT sio2jail.1
44

55
ADD_CUSTOM_TARGET(doc ALL DEPENDS sio2jail.1 scdoc)
66

7-
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/sio2jail.1 DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}")
7+
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/sio2jail.1 DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/man1")

0 commit comments

Comments
 (0)