1 DESCRIPTION = "Utilities to Manage User and Group Accounts"
2 HOMEPAGE = "http://www.thkukuk.de/pam/pwdutils/"
3 SECTION = "Security/Accounts"
10 inherit autotools-brokensep
14 #PROVIDES by pwdutils-docs
24 #Replace "DEPENDS" on gettext by "inherit gettext"
26 DEPENDS += "libtool-cross"
32 chmod -Rf a+rX,u+w,g-w,o-w ${S}
34 cp ${S}/packaging/pwdutils.manifest .
39 bb.build.exec_func('do_prep', d)
50 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
51 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
52 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
53 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
56 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
57 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
58 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
59 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
60 --target=x86_64-tizen-linux \
63 --exec-prefix=${prefix} \
64 --bindir=${prefix}/bin \
65 --sbindir=${prefix}/sbin \
66 --sysconfdir=${sysconfdir} \
67 --datadir=${prefix}/share \
68 --includedir=${prefix}/include \
69 --libdir=${prefix}/lib \
70 --libexecdir=${prefix}/libexec \
71 --localstatedir=${localstatedir} \
72 --sharedstatedir=${prefix}/com \
74 --infodir=${infodir} --disable-ldap --libdir=${prefix}/lib --disable-nls --disable-pam_rpasswd
82 echo export RPM_BUILD_ROOT=${D}
90 make install DESTDIR=${D}
91 rm -f ${D}${prefix}/lib/pwdutils/lib*.so
92 /sbin/ldconfig -n ${prefix}/lib/pwdutils
94 rm -f ${D}${prefix}/lib/pwdutils/*a
95 rm -f ${D}lib/security/*a
96 rm -f ${D}${sysconfdir}/init.d/rpasswdd
97 rm -f ${D}${sysconfdir}/pam.d/rpasswd
98 rm -f ${D}${sysconfdir}/rpasswd.conf
99 rm -f ${D}${prefix}/bin/rpasswd
100 rm -f ${D}${prefix}/sbin/rpasswdd
102 ln -sf newgrp ${D}${prefix}/bin/sg
103 install -m 644 ${S}/packaging/useradd.default ${D}${sysconfdir}/default/useradd
104 echo ".so man8/useradd.8" > ${D}${mandir}/man8/adduser.8
110 PACKAGES += " pwdutils-docs "
112 pwdutils-docs_files = ""
115 pwdutils_files += "pwdutils.manifest"
116 pwdutils_files += "${sysconfdir}/login.defs"
117 pwdutils_files += "${sysconfdir}/pam.d/chage"
118 pwdutils_files += "${sysconfdir}/pam.d/chfn"
119 pwdutils_files += "${sysconfdir}/pam.d/chsh"
120 pwdutils_files += "${sysconfdir}/pam.d/passwd"
121 pwdutils_files += "${sysconfdir}/pam.d/shadow"
122 pwdutils_files += "${sysconfdir}/pam.d/useradd"
123 pwdutils_files += "${sysconfdir}/default/useradd"
124 pwdutils_files += "${sysconfdir}/default/passwd"
125 pwdutils_files += "${sysconfdir}/pwdutils"
126 pwdutils_files += "${sysconfdir}/pwdutils/logging"
127 pwdutils_files += "${prefix}/bin/sg"
128 pwdutils_files += "${prefix}/sbin/chpasswd"
129 pwdutils_files += "${prefix}/sbin/groupadd"
130 pwdutils_files += "${prefix}/sbin/groupdel"
131 pwdutils_files += "${prefix}/sbin/groupmod"
132 pwdutils_files += "${prefix}/sbin/grpck"
133 pwdutils_files += "${prefix}/sbin/grpconv"
134 pwdutils_files += "${prefix}/sbin/grpunconv"
135 pwdutils_files += "${prefix}/sbin/pwck"
136 pwdutils_files += "${prefix}/sbin/pwconv"
137 pwdutils_files += "${prefix}/sbin/pwunconv"
138 pwdutils_files += "${prefix}/sbin/useradd"
139 pwdutils_files += "${prefix}/sbin/userdel"
140 pwdutils_files += "${prefix}/sbin/usermod"
141 pwdutils_files += "${prefix}/sbin/vigr"
142 pwdutils_files += "${prefix}/sbin/vipw"
143 pwdutils_files += "${prefix}/lib/pwdutils"
144 pwdutils_files += "${prefix}/lib/pwdutils/liblog_syslog.so.1*"
146 FILES_${PN}-docs = "${pwdutils-docs_files}"
147 FILES_${PN} = "${pwdutils_files}"
149 PKG_pwdutils-docs= "pwdutils-docs"
150 PKG_pwdutils= "pwdutils"
152 require pwdutils-extraconf.inc