Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit c1d94e1

Browse files
committed
[mod] tweaking debian pkg
1 parent 7504be2 commit c1d94e1

File tree

7 files changed

+24
-9
lines changed

7 files changed

+24
-9
lines changed

debian/README.Debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ libsphinx is a low-level library implementing cryptographic password storage
44
protocol with much stronger security guarantees than your average password
55
manager.
66

7-
-- <> Wed, 08 Jun 2022 21:52:52 +0200
7+
-- Stefan Marsiske <sphinx@ctrlc.hu> Wed, 08 Jun 2022 21:52:52 +0200

debian/control

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Source: libsphinx
22
Section: utils
33
Priority: optional
4-
Maintainer: stf <sphinx@ctrlc.hu>
5-
Build-Depends: debhelper-compat (= 13), libsodium-dev (>= 1.0.18)
4+
Maintainer: Stefan Marsiske <sphinx@ctrlc.hu>
5+
Build-Depends: debhelper-compat (= 13), libsodium-dev (>= 1.0.18), dh-exec (>=0.3)
66
Standards-Version: 4.5.1
77
Homepage: https://github.com/stef/libsphinx
88
Rules-Requires-Root: no
@@ -13,14 +13,17 @@ Architecture: any
1313
Multi-Arch: same
1414
Pre-Depends: ${misc:Pre-Depends}
1515
Depends: ${misc:Depends}, ${shlibs:Depends}
16-
Description: libsphinx is a low-level library
17-
implementing cryptographic password storage
18-
protocol with much stronger security guarantees
19-
than your average password manager.
16+
Description: Low-level SPHINX password storage library
17+
SPHINX is an information-theoretically secure cryptographic
18+
password storage protocol with much stronger security
19+
guarantees than your average password manager.
2020

2121
Package: libsphinx-dev
2222
Section: libdevel
2323
Architecture: any
2424
Multi-Arch: same
2525
Depends: libsphinx (= ${binary:Version}), ${misc:Depends}
2626
Description: Development files for libsphinx.
27+
SPHINX is an information-theoretically secure cryptographic
28+
password storage protocol with much stronger security
29+
guarantees than your average password manager.

debian/libsphinx-dev.links

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#! /usr/bin/dh-exec
2+
usr/lib/${DEB_HOST_MULTIARCH}/libsphinx.so.0 usr/lib/${DEB_HOST_MULTIARCH}/libsphinx.so

debian/libsphinx.install

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
usr/lib/*/libsphinx.so
1+
#! /usr/bin/dh-exec
2+
usr/lib/libsphinx.so => usr/lib/${DEB_HOST_MULTIARCH}/libsphinx.so.0

debian/libsphinx.symbols

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
libsphinx.so.0 libsphinx #MINVER#
2+
sphinx_blindPW@Base 1.0
3+
sphinx_challenge@Base 1.0
4+
sphinx_f@Base 1.0
5+
sphinx_finish@Base 1.0
6+
sphinx_oprf@Base 1.0
7+
sphinx_respond@Base 1.0

debian/rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
44
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
55
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
66

7+
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
8+
79
%:
810
dh $@ --sourcedirectory=src
911

src/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bin/2pass$(EXT): bin/2pass.c
4040
$(CC) $(CFLAGS) -o bin/2pass$(EXT) bin/2pass.c $(LDFLAGS)
4141

4242
libsphinx.$(SOEXT): common.o sphinx.o $(EXTRA_OBJECTS)
43-
$(CC) -shared -fpic $(CFLAGS) -Wl,-soname,libsphinx.so -o libsphinx.$(SOEXT) common.o sphinx.o $(EXTRA_OBJECTS) $(LDFLAGS)
43+
$(CC) -shared -fpic $(CFLAGS) -Wl,-soname,libsphinx.so.0 -o libsphinx.$(SOEXT) common.o sphinx.o $(EXTRA_OBJECTS) $(LDFLAGS)
4444

4545
tests/sphinx$(EXT): tests/test.c libsphinx.$(SOEXT)
4646
$(CC) $(CFLAGS) -o tests/sphinx$(EXT) tests/test.c -L. -lsphinx $(LDFLAGS)

0 commit comments

Comments
 (0)