🔒 Repository is read-only – file editing is disabled.

recipes/utils/proftpd/PAGBUILD.yaml main

42 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142
pkgname: proftpd
pkgver: '1.3.10'
pkgrel: 1
pkgdesc: A secure and highly configurable FTP daemon for serving large file archives over a network
url: 'http://proftpd.org'
arch: x86_64
depends: []
makedepends:
- libcap
- pam
- mariadb
- openssl
- pcre2
- postgresql
source:
- 'https://repo.paganlinux.eu/sources/pagan-scripts-20260822.tar.gz'
- 'https://github.com/proftpd/proftpd/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz'
- proftpd.conf
sha256sums:
- 32e0aec88cc56a8afe0b2671debe47d19357792a6ffaffaf6e3db8a021a57072
- SKIP
- SKIP
hooks:
  post-install: |
    name=proftpd
    version=1.3.9
    release=3
    INFO="\033[1;36m"
    NORMAL="\033[0;39m"
    if [ ! -f etc/proftpd.conf ]; then
          cp etc/proftpd.conf{.example,}
          printf "${INFO} /etc/proftpd.conf created ${NORMAL}\n"
          printf "${INFO} Double check /etc/proftpd.conf and adapted to your needs ${NORMAL}\n"
    fi
  pre-install: "name=proftpd\nversion=1.3.9\nrelease=3\nINFO=\"\\033[1;36m\"\nNORMAL=\"\\033[0;39m\"\nSN=\"proftpd\"\nIDN=\"\
    46\"\nif ! (getent group $SN > /dev/null); then\n\tprintf \"${INFO}Creating $SN group${NORMAL}\\n\"\n\tgroupadd -g $IDN\
    \ $SN\nfi\nif ! (getent passwd $SN > /dev/null); then\n\tprintf \"${INFO}Creating $SN user${NORMAL}\\n\"\n\tuseradd -c\
    \ \"$SN\" -d /srv/ftp -g $SN \\\n        -s /usr/bin/proftpdshell -u  $IDN $SN\nfi\nif [ -d srv/ftp ]; then\n\tinstall\
    \ -v -d -m775 -o $SN -g $SN srv/ftp \nfi\n! grep -q proftpdshell etc/shells && echo /usr/bin/proftpdshell >> etc/shells\n"
build: "SN=\"proftpd\"\nIDN=\"46\"\nif ! (getent group $SN > /dev/null); then\n   groupadd -g $IDN $SN\nfi\nif ! (getent passwd $SN > /dev/null); then\n   useradd -c \"$SN\" -d /srv/ftp -g $SN \\\n   -s /usr/bin/proftpdshell -u  $IDN $SN \nfi\ncd ./${pkgname}-${pkgver}\n\n./configure --prefix=/usr \\\n\t--sbindir=/usr/bin \\\n--sysconfdir=/etc \\\n--localstatedir=/var/run \nmake\t\n\nmake DESTDIR=${PKGDIR} install\n\ninstall -d -m755 ${PKGDIR}/usr/share/doc/proftpd-${pkgver}\ncp -Rv doc/*     ${PKGDIR}/usr/share/doc/proftpd-${pkgver}\n\ninstall -d -m755 ${PKGDIR}/etc \ncp ./proftpd.conf ${PKGDIR}/etc/proftpd.conf.example\n\nln -sv /bin/false ${PKGDIR}/usr/bin/proftpdshell\n\n# Service\ncd ${SRCDIR}/pagan-scripts-20260822\nmake DESTDIR=${PKGDIR} install-sysd-proftpd\n"
package: |
  true