- @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_APP) && ./configure --libdir=/lib --enable-shared --without-selinux --disable-nls
- cd $(DIR_APP) && sed -i 's/groups$(EXEEXT) //' src/Makefile
- cd $(DIR_APP) && find man -name Makefile -exec sed -i '/groups/d' {} \;
- cd $(DIR_APP) && sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile
+ @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/shadow-4.2.1-suppress_installation_of_groups.patch
+ cd $(DIR_APP) && ./configure \
+ --libdir=/lib \
+ --sysconfdir=/etc \
+ --enable-shared \
+ --without-selinux \
+ --disable-nls \
+ --with-group-name-max-length=32
+