我PKGBUILD
为 Apache定制了一个,运行makepkg
并安装了它pacman -U httpd.tar.xz
,效果很好。几个月后,我升级了我的系统,pacman -Syu
它使用了 Apache 的系统默认配置,这破坏了我的 Web 服务器。我如何告诉 pacman 始终使用我的自定义编译设置,以便每次发布新版本时都不必手动升级?
这些细节可能无关紧要,但是:每次有可用升级时,我都会使用带有 custompkg 的 yaourt 从源代码构建 Apache,这样我就可以将 suexec docroot 更改为我想要的内容,而无需自己手动编辑 PKGBUILD。
在过去,这种方法完美无缺。但是,现在看来,无论出于何种原因,Apache 都无法编译。我刚刚进行了完整的系统升级,因此可能与此有关。
这是修改后的 PKGBUILD 中的配置行:
../configure --enable-layout=Arch \
--enable-modules=all \
--enable-mods-shared=all \
--enable-so \
--enable-suexec \
--with-suexec-caller=http \
--with-suexec-docroot=/srv/www \
--with-suexec-logfile=/var/log/httpd/suexec.log \
--with-suexec-bin=/usr/sbin/suexec \
--with-suexec-uidmin=99 --with-suexec-gidmin=99 \
--enable-ldap --enable-authnz-ldap \
--enable-cache --enable-disk-cache --enable-mem-cache --enable-file-cache \
--enable-ssl --with-ssl \
--enable-deflate --enable-cgid \
--enable-proxy --enable-proxy-connect \
--enable-proxy-http --enable-proxy-ftp \
--enable-dbd \
--with-apr=/usr/bin/apr-1-config \
--with-apr-util=/usr/bin/apu-1-config \
--with-pcre=/usr \
--with-mpm=${mpm}
Run Code Online (Sandbox Code Playgroud)
当我尝试构建时,它似乎运行良好,直到它到达 OpenSSL …
我创建了一个指向开始/停止/等的符号链接。包装 bash 脚本/etc/rc.d
,将其添加到DAEMONS=()
rc.conf 中,但它指向的进程未在启动时启动,也未显示在$ rc.d list
. 谷歌搜索,我看到提到update-rc.d
,但似乎该命令在 Arch Linux 中不可用。添加rc.local
可以与默认值相同的方式使用的系统范围守护程序(即,不使用)的正确方法是什么?
Arch Linux 上的 Git 1.7.9.1:
git svn init -s https://app.svn.beanstalk.com/repo
Initialized empty Git repository in /path/to/repo/.git/
Authentication realm: <https://app.svn.beanstalk.com/repo:443> SVN
Password for 'localuser':
Authentication realm: <https://app.svn.beanstalk.com/repo:443> SVN
Username: remoteuser
Password for 'remoteuser':
Authentication realm: <https://app.svn.beanstalk.com/repo:443> SVN
Username:
Run Code Online (Sandbox Code Playgroud)
无论我输入我的详细信息多少次,它都不会接受它们。我已在 Web 浏览器中使用相同的凭据成功登录。我也试过这个没有-s
, 和--no-minimize-url
标志。这是怎么回事?
arch-linux ×3
pacman ×2
apache-httpd ×1
bsd ×1
daemon ×1
git ×1
init ×1
make ×1
openssl ×1
subversion ×1