kind: autotools
depends:
- tools.bst
- nfs.bst
- python2-core.bst
sources:
- kind: git
  url: upstream:memcached
  track: 1.4.22
  ref: c5530027c8ea28674358327ab8212ebaf014c848
config:
  configure-commands:
  - perl version.pl
  - touch README
  - autoreconf -fvi
  - ./configure --prefix="%{prefix}"
  install-commands:
  - make -j1 DESTDIR="%{install-root}" install
  - install -D -m 644 scripts/memcached.service "%{install-root}%{prefix}"/lib/systemd/system/memcached.service
  - mkdir -p "%{install-root}"/etc/sysconfig
  - |
    cat <<EOF > "%{install-root}"/etc/sysconfig/memcached
    PORT="11211"
    USER="nobody"
    MAXCONN="1024"
    CACHESIZE="64"
    OPTIONS=""
    EOF
