0 5 ˆl–Ðz¾””Ê:”Ê�jãm\ŠbÑ¿�þ[Œ+7(Z|@ˆG�üÿÉ ƒ M»ÈÇÆ± #!/usr/bin/perl =head1 NAME dh_installpam - install pam support files =cut use strict; use warnings; use Debian::Debhelper::Dh_Lib; our $VERSION = DH_BUILTIN_VERSION; =head1 SYNOPSIS B [S>] [B<--name=>I] =head1 DESCRIPTION B is a debhelper program that is responsible for installing files used by PAM into package build directories. =head1 FILES =over 4 =item debian/I.pam Installed into usr/lib/pam.d/I in the package build directory. Until compatibility level 14 this file was installed under etc/pam.d/I. Please consider using the "rm_conffile" feature from L to ensure the proper removal of previous PAM files. =back =head1 OPTIONS =over 4 =item B<--name=>I Look for files named debian/I.I.pam and install them as usr/lib/pam.d/I, instead of using the usual files and installing them using the package name. =back =cut init(); # PROMISE: DH NOOP WITHOUT pam cli-options() foreach my $package (@{$dh{DOPACKAGES}}) { my $tmp=tmpdir($package); my $pam=pkgfile($package,"pam"); my $pamd_dir="/usr/lib/pam.d"; if (compat(13)) { $pamd_dir="/etc/pam.d"; } if ($pam ne '') { install_dir("$tmp/$pamd_dir"); install_file($pam,"$tmp/$pamd_dir/".pkgfilename($package)); } } =head1 SEE ALSO L This program is a part of debhelper. =head1 AUTHOR Joey Hess =cut  ˆÂÁÈ ‚tAÀÇÆÑ ‹½–[s¢0†ïû+²\ì�$ Ri‘W©x(âqg§…*‡’ký¢ØÑÝ©Ûu¦ëU¼ßá}H&‘¿hÝš5éÕAÓj 7¨z 0GÅ„š¥åqÖ; `4.ùa³´RKC•Ý™f”³CŽÍÿá–G¼Xภ�xS8!äØrë¢Xº*¤T 7�…f=�RôP�ß�Û�}£HÜ{ØT§¡� ½öË™!Ÿ‚åZ¼ìj¹on$q™¶¦ $–-Ñ–îÔõ´1é¨9æˆöЭ¶B}yÀrfȇXP•ÏßpüI,E¶tÙÕâXj­8Úu£ÑI¥ÁìåQœLÍ J¤nóÞlÌû Oì˜ÆL?`93ä#,¨\@â‹ �ijÂe±Ì�I#¦õyËKŠæ°­Iélhiáõ©l Þ{IÌÁ#i›“–3C>cúË&údzîOiîn2Ìï$¿õ�¾¥öLˆl–ß=¿Jõ0–52 …q–î bÑ¿�þJ"¬Ü­5¥l eà?Ê ƒeÆAÉa–ßi~”T¾R( ÅÍÆApS�ÿÈ.### The idea is to get score residuals from the score vector ### # a function to get score residiuals from the fitted model # (the code are taking directly from `orm.fit`) func_score <- function(fit){ # coefficients coef <- fit$coefficients # convert y to ordered category y <- match(fit$y, fit$yunique) # x x <- fit$x # some useful numbers kint <- length(fit$yunique) - 1L nx <- dim(x)[2L] n <- length(y) p <- as.integer(kint + nx) # store results - matrix u <- matrix(0, nrow = n, ncol=p) # functions f <- fit$trans$cumprob fp <- fit$trans$deriv xb <- fit$x %*% coef[-(1L : kint)] ints <- c(1e100, coef[1:kint], -1e100) xby <- xb + ints[y]; xby1 <- xb + ints[y + 1L] fa <- f(xby) fb <- f(xby1) P <- fa - fb fpa <- fp(xby, fa) fpb <- fp(xby1, fb) # score for alpha for(m in 1:kint){ for(j in 1:n){ u[j, m] <- (fpa[j]*(y[j]-1==m) - fpb[j]*(y[j]==m)) / P[j] } } # score for beta for(m in (kint+1):p){ for(j in 1:n){ u[j, m] <- (fpa[j] - fpb[j]) * x[j,m-kint] / P[j] } } return(u) } func_robcov <- function(fit, cluster){ var <- vcov(fit, intercepts='all') vname <- dimnames(var)[[1]] # X <- as.matrix(residuals(fit, type="score")) X <- func_score(fit) # get score residuals n <- nrow(X) cluster <- as.factor(cluster) p <- ncol(var) j <- is.na(X %*% rep(1, ncol(X))) if(any(j)) { X <- X[! j,, drop=FALSE] cluster <- cluster[! j, drop=TRUE] n <- length(cluster) } j <- order(cluster) X <- X[j, , drop=FALSE] clus.size <- table(cluster) # if(