Do not set file user:group to 'root:root' during installation

When run as root, files will be 'root:root' anyway. When run as user
changing user:group will fail. Furthermore, the group 'root' is not
available on all systems.
This commit is contained in:
Thomas Friebel 2013-03-08 22:24:11 +01:00
parent 1cbcd0078e
commit b8266ac09f
2 changed files with 8 additions and 8 deletions

View File

@ -18,12 +18,12 @@ libosmpbf.a: fileformat.pb.o osmformat.pb.o
cp *.pb.h ../include/osmpbf/
install:
install -m 755 -g root -o root -d $(DESTDIR)/lib
install -m 644 -g root -o root libosmpbf.a $(DESTDIR)/lib
install -m 755 -g root -o root -d $(DESTDIR)/include/osmpbf
install -m 644 -g root -o root ../include/osmpbf/osmpbf.h $(DESTDIR)/include/osmpbf
install -m 644 -g root -o root ../include/osmpbf/fileformat.pb.h $(DESTDIR)/include/osmpbf
install -m 644 -g root -o root ../include/osmpbf/osmformat.pb.h $(DESTDIR)/include/osmpbf
install -m 755 -d $(DESTDIR)/lib
install -m 644 libosmpbf.a $(DESTDIR)/lib
install -m 755 -d $(DESTDIR)/include/osmpbf
install -m 644 ../include/osmpbf/osmpbf.h $(DESTDIR)/include/osmpbf
install -m 644 ../include/osmpbf/fileformat.pb.h $(DESTDIR)/include/osmpbf
install -m 644 ../include/osmpbf/osmformat.pb.h $(DESTDIR)/include/osmpbf
clean:
rm -f *.pb.h *.pb.cc *.pb.o libosmpbf.a

View File

@ -10,8 +10,8 @@ osmpbf-outline: osmpbf-outline.cpp
$(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
install:
install -m 755 -g root -o root -d $(DESTDIR)/bin
install -m 644 -g root -o root -s osmpbf-outline $(DESTDIR)/bin
install -m 755 -d $(DESTDIR)/bin
install -m 644 -s osmpbf-outline $(DESTDIR)/bin
clean:
rm -f osmpbf-outline