diff options
Diffstat (limited to 'net/xrdp-devel/files/pkg-install.in')
-rw-r--r-- | net/xrdp-devel/files/pkg-install.in | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/net/xrdp-devel/files/pkg-install.in b/net/xrdp-devel/files/pkg-install.in deleted file mode 100644 index f9980a370494..000000000000 --- a/net/xrdp-devel/files/pkg-install.in +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# vim:ts=4:sw=4:et - -if [ $# -ne 2 ]; then - echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 - exit 1 -fi - -case $2 in - PRE-INSTALL) - : nothing to do here - ;; - POST-INSTALL) - RSAKEYS=%%PREFIX%%/etc/xrdp/rsakeys.ini - PRIVATEKEY=%%PREFIX%%/etc/xrdp/key.pem - CERTIFICATE=%%PREFIX%%/etc/xrdp/cert.pem - # make sure rsakeys and certificates are private - umask 077 - # generate rsakeys.ini - [ -e "$RSAKEYS" ] || %%PREFIX%%/bin/xrdp-keygen xrdp "$RSAKEYS" - # generate self-signed certificate - [ -e "$PRIVATEKEY" -a -e "$CERTIFICATE" ] || \ - %%OPENSSLBASE%%/bin/openssl req \ - -x509 \ - -newkey rsa:4096 \ - -keyout "$PRIVATEKEY" \ - -sha256 \ - -nodes \ - -out "$CERTIFICATE" \ - -days 365 \ - -subj "/CN=$(hostname)" - ;; - *) - echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 - exit 1 - ;; -esac - -exit 0 |