/[packages]/backports/4/bumblebee/current/SPECS/bumblebee.spec
ViewVC logotype

Diff of /backports/4/bumblebee/current/SPECS/bumblebee.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 265607 by shlomif, Sat Jun 30 18:21:15 2012 UTC revision 265738 by shlomif, Sat Jun 30 22:39:45 2012 UTC
# Line 10  Name:          bumblebee Line 10  Name:          bumblebee
10  Summary:        Support for NVidia Optimus laptops on Linux  Summary:        Support for NVidia Optimus laptops on Linux
11  Group:          System/Kernel and hardware  Group:          System/Kernel and hardware
12  Version:        3.0  Version:        3.0
13  Release:        %mkrel 8  Release:        %mkrel 9
14  License:        GPLv3  License:        GPLv3
15  URL:            https://github.com/Bumblebee-Project/bumblebee  URL:            https://github.com/Bumblebee-Project/bumblebee
16  # source from git repo git://github.com/Bumblebee-Project/Bumblebee.git  # source from git repo git://github.com/Bumblebee-Project/Bumblebee.git
# Line 57  when it's not in use. Line 57  when it's not in use.
57    
58  %pre  %pre
59  %_pre_groupadd %{name}  %_pre_groupadd %{name}
 users=$(getent passwd | awk -F: '$3 >= 500 && $3 < 60000 {print $1}')  
 echo "Adding members from group(s) '$users' to 'bumblebee':"  
 echo $users  
 for user in $users; do  
     gpasswd -a $user bumblebee  
 done  
60  if [ "$1" -eq "1" ];then  if [ "$1" -eq "1" ];then
61      users=$(getent passwd | awk -F: '$3 >= 500 && $3 < 60000 {print $1}')
62      for user in $users; do
63        gpasswd -a $user bumblebee
64      done
65    /usr/sbin/update-alternatives --set gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf    /usr/sbin/update-alternatives --set gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf
66  fi  fi
67    
# Line 71  fi Line 69  fi
69  %_post_service bumblebeed  %_post_service bumblebeed
70  # Simple: still needs this since in release 3 services were not set  # Simple: still needs this since in release 3 services were not set
71  # enabled and seams that still isnt properly handeled in %%_post_service  # enabled and seams that still isnt properly handeled in %%_post_service
72  if [ $1 -ge 1 ]; then  if [ "$1" -ge "1" ]; then
73    # Enable (but don't start) the unit by default    # Enable (but don't start) the unit by default
74    /bin/systemctl enable bumblebeed.service    /bin/systemctl enable bumblebeed.service
75    # Start bumblebeed service    # Start bumblebeed service
# Line 84  fi Line 82  fi
82  %postun  %postun
83  # We need this since "%%_postun_groupdel %%{name}" doesnt remove the group if  # We need this since "%%_postun_groupdel %%{name}" doesnt remove the group if
84  # set to a user  # set to a user
85  /usr/sbin/groupdel bumblebee  if [ "$1" -eq "0" ];then
86      /usr/sbin/groupdel bumblebee
87    fi
88    
89  #--------------------------------------------------------------------  #--------------------------------------------------------------------
90  %prep  %prep

Legend:
Removed from v.265607  
changed lines
  Added in v.265738

  ViewVC Help
Powered by ViewVC 1.1.30