%pre and macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

In apt.spec we have [1] and when I query apt rpm for scripts (rpm -q
apt --scripts ) we have [2], i.e. %{_sharedstatedir} wasn't replaced by
/var/lib . why ? and how I fix it ? 

Thanks , 




[1] 
%pre	
getent group _apt >/dev/null || groupadd -r _apt	
getent passwd _apt >/dev/null || \	
    useradd -r -g _apt -d %{_sharedstatedir}/apt -s /sbin/nologin \
    -c "APT account for owning persistent & cache data" _apt	
exit 0



[2]
preinstall scriptlet (using /bin/sh):
getent group apt >/dev/null || groupadd -r apt
getent passwd apt >/dev/null || \
    useradd -r -g apt -d apt -s /sbin/nologin \
    -c "APT account for owning persistent & cache data" apt
exit 0
-- 
Sérgio M. B.
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux