Hey Mike, Here's the failure when I only use --prefix=my/build/dir
/usr/bin/install -c init.d/guacd '/etc/init.d' /usr/bin/install: cannot create regular file '/etc/init.d/guacd': Permission denied Makefile:531: recipe for target 'install-initSCRIPTS' failed If I also try to override the init.d script location with --with-init-dir=my/build/dir/etc/init.d the generated file has this full path, which doesn't work on the actual target system. The target system being the standard /etc/init.d/guacd -- Justin Phelps www.onitato.com 210.560.3124 http://www.linkedin.com/in/linuturk On Mon, Dec 9, 2019 at 4:31 PM Mike Jumper <[email protected]> wrote: > On Mon, Dec 9, 2019 at 4:21 PM Justin Phelps <[email protected]> wrote: > >> I'm working to build a deb package from source, but I'm having trouble >> redirecting the "make install" command to the package location. >> >> I attempted to use --prefix, but that broke the init.d script that was >> being written. >> > > Broke how? > > --prefix (provided to the configure script prior to running "make") is the > correct way. That option controls the base directory for all installed > components, including guacd (which would be installed to PREFIX/sbin). The > install location of guacd is dynamically substituted into the init script > as part of the build: > > > https://github.com/apache/guacamole-server/blob/c97b8f287eaf756504edd9559d95ba6568b12bb1/src/guacd/Makefile.am#L82-L84 > > https://github.com/apache/guacamole-server/blob/c97b8f287eaf756504edd9559d95ba6568b12bb1/src/guacd/init.d/guacd.in#L37 > > - Mike > >
