diff --git a/templates/OpenRC/files/locale.rc b/templates/OpenRC/files/locale.rc index aaf9d7188e8..f6e24ba63a3 100644 --- a/templates/OpenRC/files/locale.rc +++ b/templates/OpenRC/files/locale.rc @@ -13,6 +13,7 @@ start() { : >/etc/profile.d/locale.sh chmod 755 /etc/profile.d/locale.sh + [ -z "$LOCALE" ] && LOCALE="en_US" # Check if requested locale was already created if ! $(locale -a|grep -q $LOCALE.utf8); then @@ -22,7 +23,6 @@ start() eend $? fi # Set user defined locale - [ -z "$LOCALE" ] && LOCALE="en_US" einfo "Setting system locale [$LOCALE] [UTF-8]" echo "export LANG=$LOCALE.UTF-8" >> /etc/profile.d/locale.sh } diff --git a/templates/OpenRC/template b/templates/OpenRC/template index 531b6093468..08bbbdd02d0 100644 --- a/templates/OpenRC/template +++ b/templates/OpenRC/template @@ -1,7 +1,7 @@ # Template file for 'OpenRC' pkgname=OpenRC version=0.5.0 -revision=1 +revision=2 wrksrc=openrc-${version} patch_files="xbps-locale-service.diff" distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2" @@ -41,7 +41,6 @@ pre_configure() post_install() { - sed -i -e "s|38400 tty|38400 vc\/|g" ${wrksrc}/support/sysvinit/inittab install -D -m755 ${wrksrc}/support/sysvinit/inittab \ ${DESTDIR}/etc/inittab }