Skip to content

Commit

Permalink
packaging maintenance
Browse files Browse the repository at this point in the history
- remove smithd (unused)
- install apparmor profile
- suggest apparmor and its tools
  • Loading branch information
astibal committed Nov 29, 2023
1 parent 968f1a6 commit 8ce0cb4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions install.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
if(UNIX)
SET(CMAKE_INSTALL_PREFIX /usr)
install(TARGETS smithproxy DESTINATION bin)
install(TARGETS smithd DESTINATION bin)
install(FILES man/smithproxy.1 DESTINATION share/man/man1)
install_if_not_exists(etc/smithproxy.cfg /etc/smithproxy)
install_if_not_exists(etc/users.cfg /etc/smithproxy)
install_if_not_exists(etc/users.key /etc/smithproxy)
install_if_not_exists(etc/smithproxy.startup.cfg /etc/smithproxy)
install_if_not_exists(etc/smithd.cfg /etc/smithproxy)
install_if_not_exists(etc/apparmor/usr.bin.smithproxy /etc/apparmor.d/)

install(DIRECTORY DESTINATION /etc/smithproxy/certs/)
install(DIRECTORY DESTINATION /etc/smithproxy/certs/default)
Expand Down
5 changes: 5 additions & 0 deletions tools/pkg-scripts/deb/debian-0.9/postinst
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh

if [ -f /usr/bin/smithproxy ]; then
# this is an upgrade
echo "No steps needed on upgrade. Configuration will be migrated automatically by smithproxy on restart."
fi

python3 -m pip install pyparsing pylibconfig2

if [ ! -d /var/smithproxy/data ]; then
Expand Down
1 change: 1 addition & 0 deletions tools/pkg-scripts/deb/debian-0.9_Linux-Debian-12/control
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends},
python3-pyroute2,
iproute2,
telnet
Suggests: apparmor, apparmor-tools
Description: Fast and transparent TCP/UDP/TLS proxy with CLI and SOCKS5 support
Smithproxy is an advanced, feature-rich transparent proxy for
TLS, TCP, and UDP traffic. This package provides the core smithproxy
Expand Down

0 comments on commit 8ce0cb4

Please sign in to comment.