Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

68 lines (53 sloc) 1.64 kB
etcdir = /etc
initddir = $(etcdir)/init.d
zfsdir = $(etcdir)/zfs
INSTALL = /usr/bin/install -c
all:
install: install_initd install_zfs
uninstall: uninstall_initd uninstall_zfs
install_initd:
if [ -f /etc/debian_version ]; then \
$(MAKE) install_initd_debian ; \
elif [ -f /etc/redhat-release ]; then \
$(MAKE) install_initd_redhat ; \
fi
install_initd_redhat:
test -z "$(initddir)" || /bin/mkdir -p "$(DESTDIR)$(initddir)"
$(INSTALL) -m 755 init.d/initd.redhat \
$(DESTDIR)$(initddir)/zfsload
if [ -z $(DESTDIR) ]; then \
/sbin/chkconfig --add $(DESTDIR)$(initddir)/zfsload; \
service zfsload start; \
fi
install_initd_debian:
test -z "$(initddir)" || /bin/mkdir -p "$(DESTDIR)$(initddir)"
$(INSTALL) -m 755 init.d/initd.debian \
$(DESTDIR)$(initddir)/zfsload
/usr/sbin/update-rc.d zfsload defaults
service zfsload start
uninstall_initd:
if [ -f /etc/debian_version ]; then \
$(MAKE) uninstall_initd_debian ; \
elif [ -f /etc/redhat-release ]; then \
$(MAKE) uninstall_initd_redhat ; \
fi
uninstall_initd_redhat:
service zfsload stop
/sbin/chkconfig --del zfsload
uninstall_initd_debian:
service zfsload stop
/usr/sbin/update-rc.d -f zfsload remove
install_zfs:
test -z "$(zfsdir)" || /bin/mkdir -p "$(DESTDIR)$(zfsdir)"
$(INSTALL) -m 755 zfs/zfs_config \
$(DESTDIR)$(zfsdir)/
$(INSTALL) -m 755 zfs/zfs_serial \
$(DESTDIR)$(zfsdir)/
uninstall_zfs:
/bin/rm -f /etc/zfs/zfs_config
/bin/rm -f /etc/zfs/zfs_serial
clean:
distclean:
check:
distdir:
find ./ | xargs /bin/cp -rt $$distdir/$$subdir;
Jump to Line
Something went wrong with that request. Please try again.