-SRC_URI += " file://sudo-support.patch \
- file://sudo-delete-support.patch \
- file://log_timestamp.patch \
- file://ldap-user-setup-support.patch \
- file://allow-anonymous-bind-for-ldap-search.patch \
- file://ldapscripts.conf.cgcs \
- file://ldapadduser.template.cgcs \
- file://ldapaddgroup.template.cgcs \
- file://ldapmoduser.template.cgcs \
- file://ldapaddsudo.template.cgcs \
- file://ldapmodsudo.template.cgcs \
- file://ldapscripts.passwd \
-"
+do_patch_append () {
+ bb.build.exec_func('stx_do_patch', d)
+}
+
+stx_do_patch () {
+ cd ${S}
+ patch -p1 < ${WORKDIR}/stx-patches/sudo-support.patch
+ patch -p1 < ${WORKDIR}/stx-patches/sudo-delete-support.patch
+ patch -p1 < ${WORKDIR}/stx-patches/log_timestamp.patch
+ patch -p1 < ${WORKDIR}/stx-patches/ldap-user-setup-support.patch
+ patch -p1 < ${WORKDIR}/stx-patches/allow-anonymous-bind-for-ldap-search.patch
+}