Skip to content

Commit

Permalink
sysutils/appjail-devel: update to g20230518
Browse files Browse the repository at this point in the history
- Add macaddr option
- Remove unnecessary parameters description for ip4
- Add appjail-config to uninstall target
- Add execution bit permission to ajconf.sh
- Install with the correct permissions
- Add support for unprivileged users
- Add support for unprivileged users in appjail-config
  • Loading branch information
alonsobsd committed May 18, 2023
1 parent e3ece6d commit abc2312
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
14 changes: 11 additions & 3 deletions sysutils/appjail-devel/Makefile
@@ -1,6 +1,6 @@
PORTNAME= appjail
DISTVERSIONPREFIX= v
DISTVERSION= g20230515
DISTVERSION= g20230518
CATEGORIES= sysutils
PKGNAMESUFFIX= -devel

Expand All @@ -16,19 +16,27 @@ CONFLICTS= appjail
USE_GITHUB= yes
GH_ACCOUNT= DtxdF
GH_PROJECT= AppJail
GH_TAGNAME= f32080a9de86dfe1acd80b8728ad637994227a9a
GH_TAGNAME= 357c296ed3d9e1b5e0bca0caec726c14bc79d35b

ALL_TARGET= utils-strip

PORTDOCS= README.md

OPTIONS_DEFINE= DEBOOTSTRAP DOCS GIT
SUB_FILES= pkg-message

OPTIONS_DEFINE= DEBOOTSTRAP DOCS DOAS GIT
DEBOOTSTRAP_DESC= Support for Debian and Ubuntu jails
DEBOOTSTRAP_RUN_DEPENDS= debootstrap>0:sysutils/debootstrap
DOAS_DESC= Add support for unprivileged users
DOAS_RUN_DEPENDS= doas>0:security/doas
GIT_RUN_DEPENDS= git>0:devel/git

do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}/${DOCSDIR}

post-install:
${MKDIR} ${STAGEDIR}/${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/share/appjail/files/default.conf ${STAGEDIR}/${ETCDIR}/appjail.conf.sample

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions sysutils/appjail-devel/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1684183081
SHA256 (DtxdF-AppJail-vg20230515-f32080a9de86dfe1acd80b8728ad637994227a9a_GH0.tar.gz) = 02d7bcb524f365ae0877510f5e9976b75cfe0193cfa68f598c6978957cc08b64
SIZE (DtxdF-AppJail-vg20230515-f32080a9de86dfe1acd80b8728ad637994227a9a_GH0.tar.gz) = 215866
TIMESTAMP = 1684429726
SHA256 (DtxdF-AppJail-vg20230518-357c296ed3d9e1b5e0bca0caec726c14bc79d35b_GH0.tar.gz) = 2d4d35efac3958f233784f5af14489e9d03b748ab40be824df0fd7188a8d1956
SIZE (DtxdF-AppJail-vg20230518-357c296ed3d9e1b5e0bca0caec726c14bc79d35b_GH0.tar.gz) = 217462
17 changes: 17 additions & 0 deletions sysutils/appjail-devel/files/pkg-message.in
@@ -0,0 +1,17 @@
[
{ type: install
message: <<EOM
AppJail was installed

1) All information about like use and configure appjail can be found at the
following url:

https://github.com/DtxdF/AppJail/blob/main/README.md

2) A configuration file sample was installed to %%ETCDIR%%. Change it accord to
your own needs

3) Enjoy it
EOM
}
]
6 changes: 6 additions & 0 deletions sysutils/appjail-devel/pkg-plist
@@ -1,6 +1,9 @@
bin/appjail
bin/appjail-config
bin/appjail-config-user
bin/appjail-dns
bin/appjail-user
@sample %%ETCDIR%%/appjail.conf.sample
etc/rc.d/appjail
etc/rc.d/appjail-natnet
libexec/appjail/appjail-config/appjail-config
Expand Down Expand Up @@ -114,12 +117,15 @@ libexec/appjail/network/network
%%DATADIR%%/makejail/write/build/RESTART
%%DATADIR%%/makejail/write/build/START
%%DATADIR%%/makejail/write/build/STOP
%%DATADIR%%/scripts/ajconf-user.sh
%%DATADIR%%/scripts/ajconf.sh
%%DATADIR%%/scripts/ajuser.sh
%%DATADIR%%/scripts/ascii2oct.sh
%%DATADIR%%/scripts/dns.sh
%%DATADIR%%/scripts/get_depends.sh
%%DATADIR%%/scripts/run_init.sh
%%DATADIR%%/scripts/run_jail.sh
%%DATADIR%%/scripts/runas.sh
%%EXAMPLESDIR%%/templates/bridge.conf
%%EXAMPLESDIR%%/templates/linux.conf
%%EXAMPLESDIR%%/templates/vnet.conf
Expand Down

0 comments on commit abc2312

Please sign in to comment.