1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/cups/cups.conf
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
14 install_setprinter cups
16 # cups is too stupid to create the ../tmp dir itself - only
17 # needed for some ipp transfers (...?) -ReneR
18 mkdir -p $root/var/spool/cups/tmp
19 chown daemon:daemon $root/var/spool/cups/tmp
21 mkdir -p $root$datadir/cups/drivers
23 hook_add postmake 5 cups_pm
25 # shared file transformation
26 var_append INSTALL_WRAPPER_FILTER '|' \
27 "sed -e 's,bin/\(disable\|enable\|cancel\|lp\|lpq\|lpr\|lpc\|lprm\|lpstat\)$,bin/\1_cups,g'"
29 pkginstalled krb5 || var_append extraconfopt ' ' '--disable-gssapi'
30 var_append confopt " " "--with-logdir=/var/cups/log"
31 var_append makeopt " " "INITDIR= INITDDIR=''"
32 var_append makeinstopt " " "INITDIR= INITDDIR=''"