pkgname: openssh pkgver: '10.5p1' pkgrel: '1' pkgdesc: Free version of the SSH connectivity tools url: 'https://www.openssh.org/' arch: x86_64 license: - BSD depends: - shadow makedepends: - openssl - libedit - libxcrypt source: - 'https://repo.paganlinux.eu/sources/pagan-scripts-20260822.tar.gz' - 'https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${pkgname}-${pkgver}.tar.gz' sha256sums: - 32e0aec88cc56a8afe0b2671debe47d19357792a6ffaffaf6e3db8a021a57072 - d44d28a839ea9daf969cc69150fde59910b2b39361dad81a3bd6cbd19218db11 hooks: post-install: "name=openssh\nversion=10.5p1\nrelease=1\nINFO=\"\\033[1;36m\"\nNORMAL=\"\\033[0;39m\"\nif [ ! -f etc/ssh/ssh_config\ \ ]; then\n\tcp etc/ssh/ssh_config{.default,}\n\tprintf \"${INFO} /etc/ssh/ssh_config created ${NORMAL}\\n\"\n\tprintf\ \ \"${INFO} Double check /etc/ssh/ssh_config and adapted to your needs ${NORMAL}\\n\"\nfi\nINFO=\"\\033[1;36m\"\nNORMAL=\"\ \\033[0;39m\"\nif [ ! -f etc/ssh/sshd_config ]; then\n\tcp etc/ssh/sshd_config{.default,}\n\techo \"PermitRootLogin no\"\ \ >> etc/ssh/sshd_config\n\tprintf \"${INFO} /etc/ssh/sshd_config created ${NORMAL}\\n\"\n\tprintf \"${INFO} Double check\ \ /etc/ssh/sshd_config and adapted to your needs ${NORMAL}\\n\"\nfi\nsystemctl enable sshd\n" pre-install: "name=openssh\nversion=10.5p1\nrelease=1\nINFO=\"\\033[1;36m\"\nNORMAL=\"\\033[0;39m\"\nif ! (getent group\ \ sshd > /dev/null); then\n\tprintf \"${INFO}Creating sshd group${NORMAL}\\n\"\n\tgroupadd -g 50 sshd\nfi\nif ! (getent\ \ passwd sshd > /dev/null); then\n\tprintf \"${INFO}Creating sshd user${NORMAL}\\n\"\n\tuseradd -c 'sshd PrivSep' -d\ \ /var/lib/sshd \\\n\t-g sshd -s /usr/bin/false -u 50 sshd\nfi\n" build: "if ! (getent group sshd > /dev/null); then groupadd -g 50 sshd; fi\nif ! (getent passwd sshd > /dev/null); then\nuseradd -c 'sshd PrivSep' \\\n -d /var/lib/sshd \\\n -g sshd \\\n -s /usr/bin/false \\\n -u 50 sshd\nfi\nunset MAKEFLAGS\ncd ${pkgname}-${pkgver}\n\ninstall -v -m700 -d ${PKGDIR}/var/lib/sshd\n\nchown -v root:sys ${PKGDIR}/var/lib/sshd\n\n./configure --prefix=/usr \\\n--sysconfdir=/etc/ssh \\\n--datadir=/usr/share/sshd \\\n--with-md5-passwords \\\n--with-privsep-path=/var/lib/sshd \\\n--with-libedit \\\n--sbindir=/usr/bin \\\n--mandir=/usr/share/man \\\n--infodir=/usr/share/info\n\nmake DESTDIR=${PKGDIR} install\n\nif [ -f /etc/pam.d/login ]; then\n\tmkdir -p ${PKGDIR}/etc/pam.d\n\tsed 's@d/login@d/sshd@g' /etc/pam.d/login > ${PKGDIR}/etc/pam.d/sshd\n\tchmod 644 ${PKGDIR}/etc/pam.d/sshd\nfi\n\ninstall -v -m755 contrib/ssh-copy-id ${PKGDIR}/usr/bin\ninstall -v -m644 contrib/ssh-copy-id.1 \\\n${PKGDIR}/usr/share/man/man1\n\ninstall -v -m755 -d ${PKGDIR}/usr/share/doc/${pkgname}-${pkgver}\ninstall -v -m644 INSTALL OVERVIEW README* \\\n${PKGDIR}/usr/share/doc/${pkgname}-${pkgver}\n\ninstall -Dm644 LICENCE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE\n\n# Configurations files\nmv ${PKGDIR}/etc/ssh/ssh_config{,.default}\nmv ${PKGDIR}/etc/ssh/sshd_config{,.default}\n\n#\n## Services\n#\ncd ${SRCDIR}/pagan-scripts-20260822\nmake DESTDIR=${PKGDIR} install-sysd-sshd\n" package: | true