Index: debian/univention-printserver-pdf.dirs =================================================================== --- debian/univention-printserver-pdf.dirs (Revision 15115) +++ debian/univention-printserver-pdf.dirs (Arbeitskopie) @@ -1,5 +1,3 @@ usr/lib/univention-install/ -usr/sbin/ -usr/bin/ usr/lib/univention-directory-listener/system var/cache/cups-pdf/ Index: debian/univention-printserver-pdf.postrm =================================================================== --- debian/univention-printserver-pdf.postrm (Revision 15115) +++ debian/univention-printserver-pdf.postrm (Arbeitskopie) @@ -31,20 +31,31 @@ ldapbase=`univention-config-registry get ldap/base` hostname=`univention-config-registry get hostname` domain=`univention-config-registry get domainname` -server_role=`univention-config-registry get server/role` -name=pdfPrinter -dir='/var/cache/cups-pdf/%U' -anon_dir='/var/cache/cups-pdf' +name='pdfPrinterShare' # share und printer löschen -# create pdf share -#udm shares/share create --ignore_exist --position="cn=shares,$ldapbase" \ -# --option samba --set name=$name \ -# --set host=$hostname.$domain --set path=$dir \ -# --set webaccessName=$name +for p in $( udm shares/printer list --filter "&((uri=cups-pdf:/*)(spoolHost=${hostname}.${domain}))" | sed -ne 's/ name: //p' ) +do + univention-cups-reject -r "Uninstalled" "$p" +done +case "$1" in + purge) + udm shares/printer remove --filter "&((uri=cups-pdf:/*)(spoolHost=${hostname}.${domain}))" || [ $? -eq 3 ] + + # Dont remove the following entries, since they are domain-global and are only + # added once during the initial join; re-installing the package doesn't do it + # again. + :udm shares/share remove --dn "cn=$name,cn=shares,$ldapbase" + :udm settings/printeruri modify --dn="cn=printeruris,cn=cups,cn=univention,$ldapbase" \ + --remove printeruri="cups-pdf:/" + :udm settings/printermodel modify --dn "cn=PDF,cn=cups,cn=univention,$ldapbase" \ + --remove printmodel="\"cups-pdf/CUPS-PDF.ppd\" \"Generic CUPS-PDF Printer\"" + ;; +esac + # set old permissions of cups-pdf backend -dpkg-statoverride --add --force --update root lp 4754 /usr/lib/cups/backend/cups-pdf +dpkg-statoverride --quiet --remove /usr/lib/cups/backend/cups-pdf || true #DEBHELPER#