Files

40 lines
1.5 KiB
Plaintext

PortSystem 1.0
name userinfo
version 2.5
platforms darwin
categories sysutils
license GPL-2+
maintainers nomaintainer
description Userinfo displays information about a local user.
long_description Userinfo displays as much information about local \
users as possible, which may be useful in shell \
scripts. It's sort of a mixture of tools rolled into \
program. It can display mail, login and password \
information with some other options.
homepage https://gitlab.com/bjk/userinfo/wikis/home
checksums md5 b66284665f7853f3117a6d5b4a09630a \
sha1 0f561de8fd1a0361da856e861ca77f1ed1a373f7 \
rmd160 6baaed6ac4a3376fe7e007897668bdee7b91e4d1
master_sites sourceforge:project/${name}/${version}
use_bzip2 yes
patchfiles login.c.patch \
ui.c.patch \
src_Makefile.in.patch
post-patch {
reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/ui.c
if {${os.major} <= 11} {
# Not supported by the linker, but also probably not needed
# due to not using LTO.
reinplace "s|-Wl,-export_dynamic||" ${worksrcpath}/src/Makefile.in
}
}
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -W ${worksrcpath} -m 644 COPYING NEWS README \
${destroot}${prefix}/share/doc/${name}
}