Просмотр исходного кода

tweak new package a little bit

Ralf S. Engelschall 23 лет назад
Родитель
Сommit
75f11b63d4
3 измененных файлов с 8 добавлено и 8 удалено
  1. 1 1
      teapop/fsl.teapop
  2. 2 2
      teapop/rc.teapop
  3. 5 5
      teapop/teapop.spec

+ 1 - 1
teapop/fsl.teapop

@@ -12,5 +12,5 @@ ident (teapop)/.+ q{
             append=1, perm=0600
         )
     }
-}
+};
 

+ 2 - 2
teapop/rc.teapop

@@ -15,7 +15,7 @@
 
 %start -p 200 -u root
     opServiceEnabled teapop || exit 0
-    @l_prefix@/libexec/teapop/teapop -s
+    @l_prefix@/sbin/teapop -s
 
 %stop -p 200 -u root
     opServiceEnabled teapop || exit 0
@@ -31,7 +31,7 @@
         rm -f @l_prefix@/var/teapop/teapop.pid >/dev/null 2>&1 || true
         sleep 2
     fi
-    @l_prefix@/libexec/teapop/teapop -s
+    @l_prefix@/sbin/teapop -s
 
 %daily -u root
     opServiceEnabled teapop || exit 0

+ 5 - 5
teapop/teapop.spec

@@ -74,14 +74,14 @@ Provides:     POP
 %build
     #    Building Teapop with OSSP fsl
     CC="%{l_cc}" \
-    CFLAGS="`%{l_prefix}/bin/fsl-config --all --cflags`" \
-    CPPFLAGS="`%{l_prefix}/bin/fsl-config --all --cflags`" \
-    LDFLAGS="`%{l_prefix}/bin/fsl-config --all --ldflags`" \
+    CFLAGS="%{l_cflags} `%{l_prefix}/bin/fsl-config --all --cflags`" \
+    CPPFLAGS="%{l_cppflags} `%{l_prefix}/bin/fsl-config --all --cflags`" \
+    LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/fsl-config --all --ldflags`" \
     LIBS="`%{l_prefix}/bin/fsl-config --all --libs`" \
     ./configure \
         --prefix=%{l_prefix} \
         --sysconfdir=%{l_prefix}/etc/teapop \
-        --libexecdir=%{prefix}/libexec/teapop \
+        --libexecdir=%{prefix}/sbin \
         --localstatedir=%{l_prefix}/var/teapop \
         --enable-piddir=%{l_prefix}/var/teapop \
         --enable-homespool=.mail/inbox \
@@ -107,7 +107,7 @@ Provides:     POP
         $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
     %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
         %{SOURCE fsl.teapop} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
-    
+
     #   Stripping installation
     rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/cronpopauth.pl \
         >/dev/null 2>&1 || true