12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- from pisi.actionsapi import autotools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import get
- def setup():
- shelltools.export("CFLAGS","%s -fpie" % get.CFLAGS())
- shelltools.export("LDFLAGS","%s -pie" % get.LDFLAGS())
-
-
-
-
-
-
- autotools.autoreconf("-fi")
-
-
- autotools.configure("--sysconfdir=/etc/ssh \
- --libexecdir=/usr/libexec/openssh \
- --datadir=/usr/share/openssh \
- --disable-strip \
- --with-pam \
- --with-libedit \
- --with-kerberos5 \
- --with-tcp-wrappers \
- --with-md5-passwords \
- --with-ipaddr-display \
- --with-privsep-user=sshd \
- --with-privsep-path=/var/empty \
- --without-zlib-version-check \
- --without-ssl-engine")
- def build():
- autotools.make()
- def install():
- autotools.rawInstall("DESTDIR=%s" % get.installDIR())
-
- pisitools.dobin("contrib/ssh-copy-id")
- pisitools.doman("contrib/ssh-copy-id.1")
-
-
- pisitools.dobin("contrib/findssl.sh")
-
- shelltools.chmod("%s/etc/ssh/sshd_config" % get.installDIR(), 0600)
-
- shelltools.echo("%s/etc/ssh/ssh_config" % get.installDIR(), "ServerAliveInterval 5")
- pisitools.dodir("/var/empty/sshd")
- pisitools.dodoc("ChangeLog", "CREDITS", "OVERVIEW", "README*", "TODO", "sshd_config")
|