@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := shadow
PKG_NAME := shadow
PKG_VERSION := 4.8.1
PKG_VERSION := 4.8.1
PKG_RELEASE := 2
PKG_RELEASE := 3
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.xz
PKG_SOURCE_URL := https://github.com/shadow-maint/shadow/releases/download/$( PKG_VERSION)
PKG_SOURCE_URL := https://github.com/shadow-maint/shadow/releases/download/$( PKG_VERSION)
@ -22,6 +22,7 @@ PKG_CPE_ID:=cpe:/a:debian:shadow
PKG_INSTALL := 1
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
PKG_BUILD_PARALLEL := 1
PKG_BUILD_DEPENDS := libxcrypt
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
@ -41,7 +42,7 @@ CONFIGURE_ARGS += \
--without-attr \
--without-attr \
--without-tcb \
--without-tcb \
--without-nscd \
--without-nscd \
--with$( if $( CONFIG_MUSL_DISABLE_CRYPT_SIZE_HACK) ,,out) -bcrypt
--with-bcrypt
CONFIGURE_VARS += \
CONFIGURE_VARS += \
ac_cv_func_ruserok = no
ac_cv_func_ruserok = no
@ -124,19 +125,14 @@ define Package/shadow-common/conffiles
/ e t c / l o g i n . d e f s
/ e t c / l o g i n . d e f s
e n d e f
e n d e f
#hack to get libxcrypt working
TARGET_LDFLAGS := -L$( STAGING_DIR) /usr/lib/libxcrypt $( TARGET_LDFLAGS)
d e f i n e P a c k a g e / s h a d o w - c o m m o n / i n s t a l l
d e f i n e P a c k a g e / s h a d o w - c o m m o n / i n s t a l l
$( INSTALL_DIR) $( 1) /etc
$( INSTALL_DIR) $( 1) /etc
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/login.defs $( 1) /etc/
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/login.defs $( 1) /etc/
$( SED) 's,SU_NAME,#SU_NAME,g' $( 1) /etc/login.defs
$( SED) 's,SU_NAME,#SU_NAME,g' $( 1) /etc/login.defs
i f e q ( $( CONFIG_USE_MUSL ) , y )
i f e q ( $( CONFIG_MUSL_DISABLE_CRYPT_SIZE_HACK ) , y )
$( SED) 's,#ENCRYPT_METHOD DES,ENCRYPT_METHOD BCRYPT,g' $( 1) /etc/login.defs
$( SED) 's,#ENCRYPT_METHOD DES,ENCRYPT_METHOD BCRYPT,g' $( 1) /etc/login.defs
e l s e
$( SED) 's,#ENCRYPT_METHOD DES,ENCRYPT_METHOD MD5,g' $( 1) /etc/login.defs
e n d i f # CONFIG_MUSL_DISABLE_CRYPT_SIZE_HACK
e l s e
$( SED) 's,#ENCRYPT_METHOD DES,ENCRYPT_METHOD SHA512,g' $( 1) /etc/login.defs
e n d i f # CONFIG_USE_MUSL
e n d e f
e n d e f
d e f i n e P a c k a g e / s h a d o w - u t i l s / i n s t a l l
d e f i n e P a c k a g e / s h a d o w - u t i l s / i n s t a l l