View | Details | Raw Unified
Collapse All | Expand All

(-)ss5.spec.orig (-19 / +21 lines)
 Lines 44-69    Link Here 
44
make
44
make
45
45
46
%install
46
%install
47
%__mkdir_p %buildroot%_sysconfdir/%name
47
mkdir -p %buildroot%_sysconfdir/%name
48
%__mkdir_p %buildroot%_initdir
48
mkdir -p %buildroot%_initdir
49
%__mkdir_p %buildroot%_sysconfdir/{sysconfig,pam.d}
49
mkdir -p %buildroot%_sysconfdir/{sysconfig,pam.d}
50
%__mkdir_p %buildroot%_libdir/%name
50
mkdir -p %buildroot%_libdir/%name
51
%__mkdir_p %buildroot%_bindir
51
mkdir -p %buildroot%_bindir
52
%__mkdir_p %buildroot%_var/run/%name
52
mkdir -p %buildroot%_var/run/%name
53
%__mkdir_p %buildroot%_mandir/{man1,man5}
53
mkdir -p %buildroot{%_man1dir,%_man5dir}
54
54
55
find . -type f -name *.so -exec %__install -m644 '{}' %buildroot%_libdir/%name/ \;
55
find . -type f -name *.so -exec install -m644 '{}' %buildroot%_libdir/%name/ \;
56
%__install -m755 src/%name %buildroot%_bindir/
56
install -m755 src/%name %buildroot%_bindir/
57
%__install -m755 %SOURCE1 %buildroot%_initdir/%name
57
install -m755 %SOURCE1 %buildroot%_initdir/%name
58
%__install -m640 %SOURCE2 %buildroot/%_sysconfdir/pam.d/%name
58
install -m640 %SOURCE2 %buildroot/%_sysconfdir/pam.d/%name
59
%__install -m640 %SOURCE3 %buildroot/%_sysconfdir/sysconfig/%name
59
install -m640 %SOURCE3 %buildroot/%_sysconfdir/sysconfig/%name
60
%__install -m640 %SOURCE4 %buildroot%_sysconfdir/%name/
60
install -m640 %SOURCE4 %buildroot%_sysconfdir/%name/
61
%__install -m644 man/linux/*\.1\.* %buildroot%_mandir/man1/
61
install -m644 man/linux/*\.1\.* %buildroot%_man1dir/
62
%__install -m644 man/linux/*\.5\.* %buildroot%_mandir/man5/
62
install -m644 man/linux/*\.5\.* %buildroot%_man5dir/
63
63
64
%pre
64
%pre
65
/usr/sbin/groupadd -r -f %ss5_group
65
/usr/sbin/groupadd -r -f %ss5_group
66
/usr/sbin/useradd -r -g %ss5_group -d %ss5_home -M -s %ss5_shell -n -c "Socks5 server" %ss5_user >/dev/null 2>&1 ||:
66
/usr/sbin/useradd -r -g %ss5_group -d %ss5_home -M -s %ss5_shell -n \
67
	-c "Socks5 server" %ss5_user >/dev/null 2>&1 ||:
67
68
68
%post
69
%post
69
%post_service ss5
70
%post_service ss5
 Lines 79-86    Link Here 
79
%config(noreplace) %_sysconfdir/sysconfig/%name
80
%config(noreplace) %_sysconfdir/sysconfig/%name
80
%_initdir/*
81
%_initdir/*
81
%_bindir/*
82
%_bindir/*
82
%attr(0750,%ss5_user,root) %dir %_var/run/%name
83
%attr(1770,root,%ss5_group) %dir %_var/run/%name
83
%_mandir/man?/*
84
%_man1dir/*
85
%_man5dir/*
84
%_libdir/%name
86
%_libdir/%name
85
87
86
88